Hydrogen sulfide (H2S) has been regarded as an environmentally hazardous substance and its abnormal level in the atmosphere can cause great harm for human body. Therefore, the development of a rapid and sensitive method for H2S detection is valuable for both human health and ecosystem safety. Herein, a new-style photoelectrochemical (PEC) sensing device integrated with a headspace separation system for sensing H2S was constructed by assembling a NH2-UiO-66@Bi2O3 modified photoelectrode array which was prepared by a vacuum filtration technique. According to the experimental results, the H2S gas volatilized from the test sample induces partial in situ transformation of the NH2-UiO-66@Bi2O3 modified on photoelectrode array into NH2-UiO-66@Bi2S3 which promotes electron-holes separation and visible light absorption, thus leading to the enhancement of photocurrent response. Correspondingly, a signal-on PEC sensing device was thereby constructed for sensing H2S concentration linearly ranging from 2.5 to 100 µM, with a detection limit of about 0.78 µM. Beyond that, the feasibility of sensing H2S in environment samples was further confirmed by recovery assays. This work could broaden a new vision of the elegant design of portable PEC sensor for rapid and sensitive environmental analysis.