We report the development of a high-performance multifunctional sensor based on hierarchical CuO/ZnO heterostructure nanowires, exhibiting both broadband photodetection and light-activated optically-modulated selective gas sensing. The heterostructured nanowires were synthesized via a multistep process involving thermal oxidation of copper foil to form CuO nanowires, followed by the growth of branched ZnO nanowires using a two-step hydrothermal method. The CuO/ZnO heterostructure devices demonstrated ultrahigh responsivity and external quantum efficiency (EQE) over a broad spectral range from 365 to 850 nm. High responsivity of about 6×104, fast photoresponse of about 30 ms, high photo-to-dark current ratio (~690), and excellent operational stability confirm their superior photodetection performance compared with pure CuO nanowire devices. Moreover, under UV and visible light illumination, the sensors exhibited outstanding gas sensing performance toward low acetone concentrations (<20 ppm) at room temperature, achieving a response time of 1.1 s and a recovery time of 3.2 s. Notably, the sensing behavior switched from n-type to p-type as the illumination wavelength changed from UV (365 nm, intensity= 0.625 µW/cm², response = 160%) to visible light (520 nm, intensity= 23 mW/cm², response = 50%), whereas pure CuO nanowires showed only a limited response of 24% and long response and recovery times of 250 s and 190 s, respectively. This enhanced performance is attributed to the formation of interfacial p-n heterojunctions, efficient charge carrier separation, and the large surface area and porosity of the hierarchical nanostructure. Further analysis of wavelength- and intensity-dependent photoactivated sensing highlights the key role of bandgap engineering in optimizing device performance.