How to protect the sensitivity of gas sensing system in the case of persistent leakage in a closed environment? The aim of this study is to combine the gas sensing property of semiconductor with its photocatalytic performance, which may be viable alternative to give recovery time to gas sensors in the closed environment. By using Papilioparis butterfly wings as biotemplates, we herein demonstrate a facile way to synthesize biomass carbon doped TiO 2 with the replication of quasi-honeycomb scales structures, which is beneficial to highest specific area (85.27 m 2 •g −1 ) in comparison with pure TiO 2 and Ag-doped TiO 2 . The biomorphic C/TiO 2 exhibit not only excellent responses to benzene and dimethylbenzene vapors at 300 °C operating temperature superior to that of Ag-doped TiO 2 , but also have excellent sensitivity to visible light. Furthermore, the multifunctional biomorphic C/TiO 2 , used as safe concentration detectors, could determine vapors concentrations by gas sensing response values. Adopting illuminating the photocatalysts in the closed environment, the responses to dimethylbenzene and benzene have almost no changes along with continuous vapors injection. This work shows a good example for exploring the integrated application of semiconductor materials and improving the gas sensors lifetime.