Introduction

BTEX (benzene, toluene, ethylbenzene and xylene) gases, emitted by interior decoration, textile and other industries, greatly threaten people’s health due to their neurotoxic nature and cause neurasthenia, anemia, leukemia and even death [1,2,3,4,5,6,7,8,9,10,11]. Importantly, BTEX gases are very difficult to be detected due to their low chemical activity and similar structures [12]. Therefore, it is of paramount importance to develop highly stable and efficient sensors for the rapid detection of BTEX gases.

Semiconductor metal oxides such as tin oxide (SnO2) [13,14,15,16], titanium oxide (TiO2) [17,18,19], zinc oxide (ZnO) [20,21,22,23] and indium oxide (In2O3) [24,25,26] were often used as the gas sensing materials. Among them, ZnO with a wide direct band gap of approximately 3.37 eV has attracted much attention of researchers owing to its high stability, easy preparation, non-toxic and harmless characteristics [27,28,29]. However, the gas sensing performances of ZnO to BTEX were not satisfied. For instance, the response value was lower than 5, the working temperature was often higher than 370 °C, and the response/recovery time was as long as tens of seconds or even minutes [6, 30,31,32]. These shortcomings restricted its applications in BTEX sensing. To cope with these problems, a variety of methods were developed to improve the gas sensing performance of ZnO-based sensors. Among them, loading noble metals was one of the most commonly used methods, and many researchers have used this method for the preparation of ZnO-based sensors. For instance, Shen et al. [33] loaded Au on porous ZnO rose-like architectures and detected xylene, and the gas sensing performance of this sensor was about eight times higher than that of pure ZnO. Similarly, when Pt–ZnO sensor was used to detect 50 ppm toluene, the response was found to be higher compared to ZnO sensor [34]. In another study, about 3.7 times higher response was observed when Pd nanoparticle-decorated ZnO nanorod was employed to detect toluene [35]. Despite these advantages, the noble metals tended to aggregate at higher temperatures, which, in turn, led to decreasing the number of active sites and may further influence the gas sensing performance of ZnO. In addition, the noble metals were costly and often caused secondary pollution. To overcome these disadvantages associated with the noble metals, researchers across the world were starting to explore non-noble metal materials to complex with ZnO.

Graphitic carbon nitride (g-C3N4) has been widely used in the field of photocatalysis due to its strong photochemical stability, high specific surface area and good catalytic ability [36,37,38]. Because of its n-type semiconductor characteristics, g-C3N4 was currently employed in gas sensing to provide more active sites for semiconductor metal oxides such as ZnO. Using g-C3N4, many studies have recently shown significantly improved gas sensing performance of ZnO-based sensors against different types of gases and solvents. For example, Li et al. [39] prepared ZnO–C3N4 sensor to detect CH4; the gas sensing performance of this sensor was found to be about 2.2 times higher than that of pure ZnO. When polymer-wrapped g-C3N4 bundle-like ZnO nanorod was used to detect 100 ppm acetone, the response value was improved from 7 to 16 [40]. Similarly, significantly higher response was observed when ZnO–C3N4 sensor was used to detect 2000 ppm CH4 under UV light at room temperature [41]. In recent times, the doping of transition metals like cobalt (Co) has been shown to further improve the catalytic activity of g-C3N4. The pyridine nitrogen group presented in g-C3N4 could capture Co2+ ions [42, 43], leading to the formation of Co–N bond, which, in turn, provided more number of reactive oxygen species to react with surrounding gas molecules [44,45,46]; thereby, it enhanced the gas sensing performance of the sensors. However, to the best of our knowledge, Co-doped C3N4 sensor has not yet been used for the detection of BTEX gases.

Hence, in the present study, a maiden attempt was made to prepare nano-composite of ZnO and Co-doped C3N4 sensor for the detection of BTEX gases. The gas sensing performance of this sensor was studied in comparison with ZnO, g-C3N4 and ZnO–C3N4 sensors. Finally, plausible mechanism for the improved gas sensing was proposed.

Experimental

Materials

Zinc acetate dihydrate (Zn(CH3COO)2·2H2O) was purchased from Fuchen Chemical Reagent Factory of Tianjin (Tianjin, China). Urea (CO(NH2)2) and ethanol were purchased from Sinopharm Chemical Reagent Co. Ltd. (Shanghai, China). Dicyandiamide (C2H4N4) and cobalt chloride (CoCl2·6H2O) were purchased from Aladdin Reagent (Shanghai) Co. Ltd., China. All chemicals were used directly without further purification.

Synthesis of porous Co–C3N4/ZnO

Porous ZnO nanosheet precursor

At first, zinc acetate (0.2 mol/L, 15 mL) and urea (0.4 mol/L, 15 mL) solutions were mixed well in a 50-mL beaker and dispersed for 10 min by ultrasonication. The mixture was transferred to a stainless steel high-pressure reactor having a capacity of 50 mL and heated in an oven at 120 °C for 5 h. The generated white precipitate was then washed with deionized water and ethanol thrice and dried at 60 °C for 12 h in the vacuum drying oven. Finally, the precursor of ZnO was obtained.

Co–C3N4

One gram of dicyandiamide (DCDA) was added into 20 mL of deionized water, and a certain amount of CoCl2·6H2O was added and then stirred. The mixture was placed in a water bath at 80 °C to remove water and then dried in the vacuum oven at 60 °C for 12 h. The dried sample was calcined in the tube furnace at 500 °C for 4 h under N2 atmosphere. The sample obtained was called as Co–C3N4.

Co–C3N4/ZnO

300 mg of ZnO precursor and 100 mg of Co–C3N4 were ground in a mortar and then annealed in a muffle furnace at 400 °C for 2 h. The sample obtained was named as Co–C3N4/ZnO.

Characterization

The phases of as-prepared products were analyzed by X-ray diffraction (XRD, Bruker D8 Advance A25). The morphology and structure were studied using scanning electron microscopy (SEM, Quanta 250) and field emission transmission electron microscopy (FE-TEM, FEI Tecnai G2F 20, USA). The chemical elements and their valence states were obtained by X-ray photoelectron spectroscopy (XPS, Thermo Fisher Scientific Thermo ESCALAB 250Xi, USA).

Preparation and testing of gas sensors

The sample was ground in a mortar using anhydrous ethanol and then brushed on the ceramic tube. There were two gold electrodes at both ends of the ceramic tube and were connected with 2 Pt wires on each electrode. The sensor was heated by the nickel chromium wire present in the middle of the ceramic tube, and six wires were welded on the black base (Fig. 1a). The samples were tested in WS-30A gas sensor testing system after 5 days of aging (Fig. 1b). The response was defined as S = Ra/Rg, where Ra is the resistance of the gas sensor in the air and Rg is the resistance of the gas sensor in the test gas.

Figure 1
figure 1

Scheme of gas sensor (a), gas sensing test system (b)

Results and discussion

Material characterization

The crystal structure and phase of the samples were studied using XRD, and the results are shown in Fig. 2. Pure g-C3N4 showed two different diffraction peaks at 13.1° and 27.4° corresponding to (100) and (002) planes [47]. After the introduction of cobalt into g-C3N4, the XRD pattern showed the peak intensity of (002) significantly decreased; it suggested that cobalt ions were embedded into in-planes of g-C3N4 [42, 48]. The crystal structure of ZnO was matched well with the JCPDS file no. 36–1451, and there was no redundant peak in the diffraction pattern of ZnO, indicating good crystallinity. For ZnO–C3N4, there was no peak corresponding to (100) crystal plane of g-C3N4. However, a tiny peak belonging to (002) of g-C3N4 was observed. This was attributed to the peak intensity of ZnO, which was too high to observe (100) peak of g-C3N4. In the case of Co–C3N4/ZnO, even the (002) peak of g-C3N4 was not seen (Fig. 2). It may be caused by the strong peak intensity of ZnO. Interestingly, in all the composites, the characteristic peak position of ZnO was not changed, indicating that there was no effect on ZnO structure even after the introduction of g-C3N4 or Co–C3N4.

Figure 2
figure 2

XRD patterns of ZnO, g-C3N4, Co–C3N4, ZnO–C3N4 and Co–C3N4/ZnO

As can be seen from Fig. 3a, b, ZnO had a porous sheet structure. The existence of pores increased the specific surface area of ZnO, which, in turn, increased its gas sensing performance. Figure 3b shows that the porous and flaky structure of ZnO was not changed after loading with g-C3N4; however, partial pores were observed. In good agreement with the SEM results, TEM images also showed the porous structure of ZnO nanosheets (Fig. 3c, d). Some of the holes were marked with red circles.

Figure 3
figure 3

SEM images of ZnO (a), ZnO–C3N4 (b); TEM images of Co–C3N4/ZnO (c, d); HRTEM images of Co–C3N4/ZnO (e, f); elemental mapping images of Zn, O, C, N, Co (gk)

Figure 3e, f shows the HR-TEM images of Co–C3N4/ZnO, and the stripes are clearly marked in the images. In consistent with our XRD results, the lattice fringe spacing of 0.261 nm and the lattice spacing of 0.323 nm were corresponded to (002) plane of ZnO and (002) plane of g-C3N4 [49]. The elemental mapping results are shown in Fig. 3g–k. The distribution of each element was found to be relatively uniform, and no impurities were observed.

The chemical bonding states of different elements in Co–C3N4/ZnO were analyzed by using XPS, and the spectra are shown in Fig. 4. The Zn 2p spectrum shown in Fig. 4b contained two typical peaks of Zn 2p, i.e., Zn 2p3/2 (1021.6 eV) and Zn 2p1/2 (1044.8 eV) with a splitting distance of 23.2 eV, indicating that Zn was present in the form of Zn2+ [50, 51]. As shown in Fig. 4c, O 1s was divided into two peaks located at 530.46 eV and 531.8 eV. These two peaks were attributed due to the presence of surface lattice oxygen and surface adsorbed oxygen [50, 52]. The latter’s presence was crucial for the detection of BTEX gases. Similarly, the XPS spectrum of Co 2p also showed two peaks. One observed at 780.2 eV was due to the presence of Co–O bonding, and the other peak seen at 782.0 eV was caused by Co–N bonding (Fig. 4d). From these results, it can be speculated that Co has been doped into the interior of g-C3N4 [53, 54]. As shown in Fig. 4e, C 1s spectrum depicted three peaks at 288.9 eV, 284.7 eV and 286.5 eV corresponding to N–C=N, C–C and C=N groups [55, 56]. The different valence states of N are shown in Fig. 4f, which included C–N–H (401 eV), N–(C)3 (399.79 eV), C=N–C (398.66 eV) and the pyridine N (398.18 eV) [52, 53].

Figure 4
figure 4

a XPS survey spectra of Zn 2p; high-resolution spectra of b Zn 2p, c O 1 s, d Co 2p, e C 1 s and f N 1 s in Co–C3N4/ZnO

Gas sensing performance of the synthesized sensors

The response value of different sensors against BTEX gases recorded at different temperatures is presented in Fig. 5a–c. In this study, the response value of sensors to BTEX \(\overline{x}\) was found to be increased with the increase in temperature from 200 to 370 °C. Interestingly, Co–C3N4/ZnO sensor exhibited better response to BTEX compared with ZnO and ZnO–C3N4 sensors. The response values of Co–C3N4/ZnO sensor to benzene, ethylbenzene, toluene, o-xylene, m-xylene and p-xylene were 3( ± 0.548), 8.5( ± 0.99), 16.8( ± 0.707), 21.3( ± 0.67), 19.8( ± 1.257) and 32.6( ± 1.16), respectively. In addition, the results of standard deviation are summarized in Table S2. It can be clearly seen that the standard deviations of ZnO, ZnO–C3N4 and Co–C3N4/ZnO sensors were acceptable. Hence, three kinds of sensors had excellent repeatability to BTEX detection.

Figure 5
figure 5

Response of the sensors: a pure ZnO, b ZnO–C3N4, c Co–C3N4/ZnO to 100 ppm BTEX at different operating temperatures, d responses of ZnO, ZnO–C3N4 and Co–C3N4/ZnO to 100 ppm BTEX at 370 °C (C3N4 and Co–C3N4 sensors did not show any response against BTEX). The error bar is the standard deviation, which was calculated from the equation: \(S = \sqrt {\frac{{\sum\limits_{i = 1}^{n} {\mathop {\left( {x_{i} - \overline{x} } \right)}\nolimits^{2} } }}{n - 1}}\), where xi is the response value after each test, \(\overline{x}\) is the average value and the number of repeats was 5

The responses of ZnO, ZnO–C3N4 and Co–C3N4/ZnO sensors to BTEX observed at 370 °C are shown in Fig. 5d. The response value of ZnO sensor to all the BTEX gases was found to be < 3. ZnO–C3N4 sensor also exhibited similar response value to benzene, toluene and ethylbenzene compared with ZnO sensor, while the response value of ZnO–C3N4 sensor for o-xylene, m-xylene and p-xylene was found to be about two times higher than that of pure ZnO sensor. In the case of Co–C3N4/ZnO sensor, the response value was significantly increased against all the gases except benzene; about 3–11 times higher response was observed compared with ZnO sensor. BTEX-sensing efficiency of Co–C3N4/ZnO sensor prepared in this study was compared with the previously reported sensors as listed in Table 1. Interestingly, our sensor outperforms most of other sensors in terms of response value. Among six different BTEX gases tested, Co–C3N4/ZnO sensor showed higher response to o-xylene, m-xylene and p-xylene, because the xylene molecules contained two methyl groups which may feature higher activation compared with benzene, toluene and ethylbenzene [57]. Therefore, o-xylene, m-xylene and p-xylene can be oxidized easily that made it easier to the redox reaction [12]. Among three different xylene molecules tested, the highest response was recorded against p-xylene. In addition, the BTEX-sensing properties of three batches of Co–C3N4/ZnO were evaluated, and the results are shown in Fig. S4. The response value to each kind of BTEX for three batches of Co–C3N4/ZnO changed little at different temperatures. That indicated the different batches of Co–C3N4/ZnO had good repeatability to BTEX detection.

Table 1 Comparison of BTEX-sensing performance of Co–C3N4/ZnO sensor with previously reported sensors

Figure 6a shows the response value of Co–C3N4/ZnO sensor at different concentrations of p-xylene ranging from 2 to 500 ppm at 370 °C. In this study, the response of the sensor changed so quickly when it was exposed to the target gas (p-xylene), which meant that the sensor had a quick response and recovering ability to p-xylene. Interestingly, a significant response was observed when the concentration of p-xylene was maintained at 2 ppm, indicating that Co–C3N4/ZnO sensor had excellent ability to detect even the lowest concentration of p-xylene tested in this study.

Figure 6
figure 6

a Responses of Co–C3N4/ZnO sensor against different concentrations of p-xylene at 370 °C; b corresponding response curves of (a) (the inset shows the response curves of Co–C3N4/ZnO sensor against 2–20 ppm p-xylene); c six successive response cycles of Co–C3N4/ZnO sensor against 100 ppm p-xylene; the repeatability test of the sensor against 100 ppm p-xylene at 370 °C within d 10 days and e 14 weeks

The linear curve for the response values of Co–C3N4/ZnO sensor is shown in Fig. 6b. It was obvious from this study that when the concentration of p-xylene was below 1000 ppm, the response of the sensor was found to be increased with the increasing concentrations of p-xylene. While the concentration of p-xylene was 1000 or 2000 ppm, the response value was basically unchanged, indicating that the adsorption ability of the sensor was saturated when the concentration of p-xylene reached 1000 ppm. When the sensor was exposed to lower concentrations (2–20 ppm) of p-xylene, the data obtained were very well fitted linearly with an R2 value of 0.98788. (The corresponding linear fitting equation was y = 0.605x + 2.402. The standard error of intercept and slope was 0.545 and 0.047, respectively.)

Stability was another key factor that determines the real-world applications of the gas sensors. As shown in Fig. 6c, d, the response value of Co–C3N4/ZnO sensor to 100 ppm p-xylene was not changed much during the six successive cycles and after 10 days, indicating the excellent short-term stability and repeatability of Co–C3N4/ZnO sensor. The response/recovery time of our sensor against p-xylene was only 2 s/2 s, much shorter than the studies reported to date [67, 68]. In addition, Co–C3N4/ZnO sensor also showed excellent long-term stability and repeatability even after 14 weeks (Fig. 6e).

Mechanism of gas sensing

When ZnO sensor was exposed to air, O2 will be absorbed on the surface; the absorbed O2 would capture electrons from the conduction band of ZnO, thus leading to the formation of active oxygen species such as O2 and O. The target gases would then react with the active oxygen species generated on the surface of ZnO. Finally, the active oxygen species would release the trapped electrons back to the conduction band of ZnO, and the specific reactions are given in Eqs. (13).

$$ {\text{O}}_{2} + {\text{ e}}^{ - } \to {\text{ O}}_{2}^{ - } $$
(1)
$$ {\text{O}}_{2}^{ - } + {\text{ e}}^{ - } \to 2{\text{O}}^{ - } $$
(2)
$$ {\text{C}}_{a} {\text{H}}_{b} + \, m{\text{O}}^{ - n} \to \, a{\text{CO}}_{2} + \, b{\text{H}}_{2} {\text{O }} + \, mn{\text{e}}. $$
(3)

For composite material sensors, the electrons of g-C3N4 would migrate to the conduction band of ZnO owing to their difference in Fermi energy levels, which would lead to larger change of resistance and higher response. This can be attributed to the formation of more number of active oxygen species on the surface of ZnO as discussed above (Fig. 7b). When ZnO was composited with Co–C3N4, Co and N would join and form Co–N bond, which then acted as a catalytic active center to promote the conversion of oxygen into active oxygen species [53]. As a result, more number of BTEX gases would react with active oxygen species; hence, more number of electrons would be released. Thereby, Co–C3N4/ZnO sensor, developed in this study, provides the best gas sensing performance against p-xylene than the so far reported sensors.

Figure 7
figure 7

The gas sensing mechanism of a ZnO, b ZnO–C3N4 and c Co–C3N4/ZnO sensor

Conclusions

In the present study, the composite of porous ZnO nanosheet and Co-doped C3N4 was prepared by the precursor solid-phase synthesis method. And the gas sensing ability of this composite system was tested against BTEX gases. Interestingly, Co–C3N4/ZnO sensor exhibited better gas sensing performance to BTEX gases compared with pure ZnO sensor; notably, about 11 times higher response was observed against p-xylene along with much shorter rate of response/recovery time (2 s/2 s). In addition, this sensor had the ability to detect as low as 2 ppm of p-xylene and was found to be highly stable for up to 14 weeks. The higher efficiency of this sensor was likely due to the presence of more number of active sites and the formation of more number of active oxygen species on the surface of ZnO. Taken together, Co–C3N4/ZnO sensor could be ideal for the rapid detection of BTEX gases, especially for p-xylene, in the surrounding environment.