1 Introduction

NO2 is one of the main harmful air pollutants with pungent smell, which can cause acid rain, haze weather and photochemical smog, posing a great threat to ecosystem and human health [1,2,3,4]. According to the regulations of the American Conference of Governmental Industrial Hygienists, the safety standard concentration of NO2 in environmental monitoring is 3 × 10–6 [5]. The United States Environmental Protection Agency (US EPA) also announced that the exposure concentration of NO2 in the air is 0.053 × 10–6 [6]. People’s health can be affected if people stay in the environment with NO2 concentration greater than 3 × 10–6 for more than 8 h, or greater than 5 × 10–6 for more than 15 min. In addition, the detection of NO2 concentration in exhaled gas can be used as a monitoring index for some diseases [7]. Therefore, the development of NO2 gas sensors is indispensable for environmental monitoring and medical diagnosis.

Zinc oxide (ZnO) is regarded as one of the potential materials for detecting NO2 owing to its excellent conductivity and stability [8]. Most traditional metal oxide sensors are thick film sensors (usually several microns in thickness), which makes it difficult for the bottom layer to fully take part in the whole gas sensing process [9]. Therefore, thin-film metal oxide arrays with highly ordered morphology can provide more active sites because of the larger specific surface area. For example, ZnO nanorod arrays with different lengths grown in situ by wet chemical method have 3100% gas sensing response to 100 × 10–6 NO2 at 175 °C [10]. The vertically aligned ZnO nanowalls prepared on indium tin oxides (ITO) glass with zinc acetate as zinc source have a response value of 30 to 50 × 10–6 NO2 at 220 °C and a detection limit of 1 × 10–6 [11]. However, ZnO sensors usually have the disadvantage of high operating temperature, which lead to increased energy consumption, complex device structure and easy to cause explosion [12, 13]. In addition, the detection of low concentration NO2 is still a challenge for ZnO sensor.

Conductive polymers have been proved to effectively reduce the operating temperature of gas sensing materials, including polyaniline (PANI), polypyrrole (PPy), polythiophene (PTh) and their derivatives [14,15,16,17,18]. PANI has become an ideal material due to its high conductivity and low cost. In particular, PANI has a large specific surface area, which can promote the adsorption and desorption of gas, so as to shorten the response and recovery time [19, 20]. However, there are few reports on sensors prepared by ZnO/PANI nanocomposite for NO2 detection. For instance, after preparing ZnO-TiO2 nanoparticles, Sonker et al. [21] spin coated a layer of PANI film to make the sensor capable of detecting liquefied petroleum gas (LPG) and NO2. The response value to 20 × 10–6 NO2 at room temperature is 412. Xu et al. [22] synthesized ZnO/SnO2 porous nanoparticles by solvothermal method, and the surface of the nanoparticles was coated with PANI. The response/recovery time of ZnO/SnO2/PANI nanocomposite (9 s/27 s) is shorter than that of ZnO/SnO2 nanocomposite (28 s/20 s). However, the detection limit is only 2.5 × 10–6 NO2. The combination of PANI not only improves the response value, but also reduces the response recovery time. However, the detection limit and recovery time need to be further improved for popularization and practical application. Therefore, the diffusion of PANI on the surface of ZnO nanoflake array is expected to realize the detection of trace NO2 at room temperature.

Our research team [23] previously reported that forest-like PANI/TiO2 nanorod arrays can detect low concentrations of dimethylamine at room temperature. Compared with the traditional composed method, the gas-phase diffusion method can control the heterostructure by adjusting the diffusion time. ZnO/PANI nanocomposites show the properties of n-type semiconductor and have superior sensing performance to NO2 at room temperature. Compared with the original ZnO and PANI, the sensing performance of ZnO/PANI nanocomposite sensor has been significantly improved. The response value is about 23 times higher than that of original PANI and 2 times higher than that of original ZnO. The detection limit is improved to 0.01 × 10–6, which is the best detection limit of all ZnO/PANI-based NO2 sensors ever reported in the literature.

2 Experimental

Zinc acetate (Zn(Ac)·2H2O), diethanolamine (DEA), hydrochloric acid (HCl), ethanol (C2H5OH), hexamethylene tetramine (C6H12N4), ammonium persulfate (APS), and aniline (C6H7N) all directly purchased of analytical grade reagents without further purification. Characterization, sensor fabrication and sensing measurements are described in the Supporting Information.

For the preparation of ZnO/PANI nanoflake arrays, first of all, 0.1147 g APS was dissolved in 20 ml deionized water by stirring. Then, ceramic tubes and glass slides with ZnO nanoflake arrays (kindly see the Supporting Information) were immersed in the above solution. After holding for 120 s, the ceramic tube was pulled out of the liquid surface with a dip-coating machine at a speed of 35 mm·min−1 and hung on the top of the desiccator (Φ15 cm). Subsequently, 100 μl aniline was placed at the bottom of the desiccator. ZnO/PANI nanoflake arrays composites were obtained after aniline volatilized at 1 °C for 0.5 h. Finally, ZnO/PANI composites were washed with deionized water, and dried in an oven at 70 °C for 12 h. Figure 1 shows the schematic diagram of synthesis processes of ZnO/PANI nanocomposites thin film.

Fig. 1
figure 1

Schematic illustration of synthesis process of ZnO/PANI nanocomposite

3 Results and discussion

3.1 Morphology, structural and surface chemical characterization

X-ray diffraction (XRD, D/max-iii-b-40 kv, Japan, with Cu Kα1 radiation, λ = 0.15406 nm) patterns of PANI, ZnO and ZnO/PANI nanocomposites are shown in Fig. 2a. The significant peak from 20° to 30° is attributed to PANI [24]. The diffraction peaks at 31.77°, 34.42°, 62.86°, 36.25° and 56.60° correspond to (100), (002), (103), (101) and (110) crystal planes of ZnO (JCPDS No. 36-1451). Therefore, the nanocomposite is composed of ZnO and PANI.

Fig. 2
figure 2

a XRD patterns and b FTIR spectra of ZnO, PANI and ZnO/PANI nanocomposite

In order to further verify the structure of the nanocomposites and the existence of PANI, the nanocomposites were studied by Fourier transform infrared spectroscopy (FTIR). Figure 2b shows FTIR spectra of ZnO, PANI and ZnO/PANI nanocomposites in the wave number range of 500–4000 cm−1. The peak at 564 cm−1 is caused by the tensile vibration of Zn–O belonging to ZnO. The peaks at 1577, 1499, 1297, 1107 and 1025 cm−1 are mainly attributed to PANI. The peak at 1577 cm−1 belongs to C=C stretching of quinoid rings, 1499 cm−1 belongs to C=C stretching of benzenoid rings, and 1297 cm−1 belongs to the C–N stretching of secondary aromatic amine [25,26,27,28]. The peak at 1107 cm−1 is designated as the protonated imine. The peak at 1025 cm−1 represents the tension of C–H bending. A slight blue shift of PANI peaks can be observed from the nanocomposite, which is due to the interactions between ZnO and PANI [29].

The morphology and microstructure of the composite were characterized by scanning electron microscopy (SEM) and transmission electron microscopy (TEM). Uniform ZnO nanoflake arrays can be observed on the ceramic tube (Fig. 3a, b). As shown in SEM images of ZnO/PANI nanocomposites (Fig. 3c, d), PANI nanoflakes are of 10–20 nm thickness and 1–2 μm in diameter.

Fig. 3
figure 3

a, c Low and b, d high magnification SEM images of a, b ZnO nanoflake arrays and c, d ZnO/PANI nanocomposite

In order to better observe the microstructure of ZnO/PANI nanocomposite, TEM was used to characterize the material. It is obvious that PANI is evenly distributed on the surface of smooth ZnO nanoflakes (Fig. 4a, b), which is the same as that obtained by SEM. High-resolution transmission electron microscope (HRTEM) clearly shows the interface between ZnO and PANI (Fig. 4c). 0.24 nm is the characteristic plane spacing corresponding to (101) plane of ZnO. The selected area electron diffraction (SAED) shows the diffraction lattice corresponding to (104), (103), (100) and (006) crystal planes of ZnO (Fig. 4d), which further confirms XRD results.

Fig. 4
figure 4

a, b TEM, c HRTEM and d SAED images of ZnO/PANI nanocomposite

The chemical state and element composition of ZnO/PANI nanocomposite were studied by X-ray photoelectron spectroscopy (XPS) (Fig. S1 in Supporting Information). According to the full-range XPS spectrum and binding energy, there are C, N, O and Zn in ZnO/PANI nanocomposite. The analysis shows that C and N come from PANI, which indicates that PANI has been successfully modified on the surface of ZnO.

3.2 NO2 gas sensing properties

The diffusion time of aniline directly affects the effective heterogeneous interface between PANI and ZnO. Therefore, Fig. 5a displays the effect of aniline diffusion time in the range of 0.5–2.5 h on the response value of the sensor prepared by the material. As ZnO/PANI nanocomposites sensor reflects the nature of n-type semiconductor, the response value is defined as S = Rg/Ra, where Ra is the resistance in the presence of air and Rg is the resistance after exposure to NO2 gas. The response of the sensor to 10.00 × 10–6 NO2 reaches the maximum of 28.00, when the diffusion time is 0.5 h. When the diffusion time is greater than 0.5 h, the response value decreases. The possible reason is that after a long time of deposition, ZnO is wrapped by PANI, which reduces the number of exposed heterogeneous interfaces and the adsorption sites of NO2, thus reducing the response value. Therefore, the samples prepared in 0.5 h were selected for study in detail.

Fig. 5
figure 5

a ZnO/PANI sensors variation of response values at different diffusion time, b response values of ZnO, PANI and ZnO/PANI nanocomposites in 10.00 × 10–6 NO2, c selective investigation on various interfering gases

Figure 5b depicts the response values of ZnO, PANI and ZnO/PANI to 10.00 × 10–6 NO2 by histogram. At the operating temperature of 50 °C, the response value of ZnO sensor was 14.00. At room temperature, the PANI sensor response value was 1.19. ZnO/PANI sensor achieved the high response of 28.00 at room temperature, which is 23.53 times higher than that of PANI sensor and 2 times higher than that of ZnO sensor. This result indicates that the formed heterojunction can effectively improve the response value. More interestingly, ZnO/PANI reflects the sensing characteristics of n-type semiconductor. The results are similar to those previously reported by our group. The reason is that a very thin PANI film is formed on the surface of ZnO by gas diffusion method. Although this film has a large effective coverage area on ZnO, it is not completely covered. The combination of PANI and ZnO enhances its electrical conductivity, making ZnO sensor can work at room temperature. The array structure of ZnO provides more active sites, which is conducive to the diffusion, adsorption of test gas molecules and the transmission of electrons. Therefore, ZnO plays a leading role. The excellent selectivity determines that the sensor can accurately detect NO2 without being affected by other gases. When evaluating the selectivity of ZnO/PANI sensor, it was found that the response values to 100 × 10–6 ethanol, acetone, hydrogen sulfide, triethylamine, trimethylamine, aniline, dry ammonia, and dimethyl amine (for the detailed preparation procedures for all sample gases, kindly see the Supporting Information Sensor Manufacturing and Sensing Measurements section) were 1.00, 1.00, 4.66, 1.57, 1.07, 1.30, 1.84 and 2.27, respectively (Fig. 5c). It proves that ZnO/PANI sensor has excellent selectivity for NO2.

Figure 6a presents the response and recovery curve of the sensor at room temperature. When the sensor was exposed to 10.00 × 10–6 NO2, the response value of the sensor was 28.00. The sensor response and recovery time were 32 and 18 s, respectively. The 18 s recovery time can be attributed to the highly ordered nanoflake array structure, which is favorable for the desorption of NO2 molecules on the material.

Fig. 6
figure 6

Gas sensing properties of ZnO/PANI sensor at 25% relative humidity at room temperature: a one-cycle resistance signal to 10.00 × 10–6 NO2; b reproducibility of response to 10.00 × 10–6 NO2 for five times; c response test results of 0.01 × 10–6–10.00 × 10–6 NO2; d linear relationship between concentration and response value; e long-term stability evaluation of 1.00 × 10–6 NO2; f sensor response value at 11.30% to 67.00% relative humidity

Figure 6b shows the response and recovery curves for five times when the sensor was exposed to 10.00 × 10–6 NO2 at room temperature. The response values of five tests were 28.00, 27.56, 28.00, 28.36 and 27.65, respectively. This demonstrates that the monitoring of NO2 by ZnO/PANI sensor has excellent repeatability at room temperature. Figure 6c shows the response test results of the sensor to NO2 with the concentration between 0.01 × 10–6 and 10.00 × 10–6. As shown in Fig. 6d, there is a good corresponding relationship between the response value (y) and the concentration. A1, A2, x0 and dx represent the initial value, final value, center and time const, respectively. The correlation coefficient (R2) is as high as 0.99874. The detection limit is as low as 0.01 × 10–6 (Rg/Ra = 1.17). The data indicate that the sensor has a wide detection range.

Figure 6e shows the response of the sensor to 1.00 × 10–6 NO2 every 6 days in a month. The average response value was 1.91. It shows that ZnO/PANI sensor has good long-term stability. The response values of ZnO/PANI sensor under different humidity environments are shown in Fig. 6f. When the sensor is exposed to the environment RH 11% (relative humidity) to RH 67%, the response value of ZnO/PANI sensor changes little. The result shows that the sensor can work in normal humidity environment. Comparing the performance of the sensor with the previously reported ZnO-based sensors for detecting NO2 listed in Table 1, it is found that the sensor has significant advantages in operating temperature and detection limit when detecting NO2.

Table 1 Comparison of sensing performances of ZnO-based sensor for NO2 gas

3.3 NO2 sensing mechanism

To investigate the sensing mechanism of NO2, the contact potential difference (CPD) data of PANI and ZnO were tested by Kelvin probe technique (Fig. 7a, b). Evac, Ec, and Ev represent the vacuum band, conduction band and valence band, respectively. The work functions (φ) of PANI and ZnO are 5.27 and 5.47 eV, respectively. The band gap values (Eg) of PANI and ZnO are 2.80 and 3.37 eV [39], respectively. Their carriers exist in the form of holes and electrons. Figure 7c, d shows the schematic diagrams of PANI and ZnO energy bands before and after composite based on work function and band gap. Fermi level of PANI is 0.2 eV higher than that of ZnO. Therefore, electrons will be transferred from PANI conduction band with high Fermi level to ZnO conduction band, and holes will also be transferred from ZnO to PANI, so as to accelerate electron transfer. Electron and hole transfer when the two materials contact each other. Eventually Fermi levels (Ef) at the heterogeneous interface of the ZnO/PANI nanocomposite will become equal. The hole accumulation layer and the electron accumulation layer are created on PANI and ZnO surface, respectively. This results in the decrease in active electrons on the surface of PANI and the increase in active electrons on the surface of ZnO.

Fig. 7
figure 7

a PANI and b ZnO contact potential difference data. Energy band structure c before and d after combination between ZnO and PANI

When the sensor is exposed to air, oxygen is adsorbed by the composite (Eq. (1)) and combined with the conduction band electrons of the material to form O2 (Eq. (2)) on the surface of the nanocomposite [40, 41]. On the other hand, NO2 is an oxidizing gas [42]. When NO2 molecules are adsorbed on the surface of ZnO/PANI nanocomposite, NO2 can directly capture electrons from the conductive layer of the nanocomposite and convert them into NO2 (Eqs. (3, 4)). NO2 and O2 absorbed by the material are converted to NO2 and O (Eq. (5)). These lead to an increase in the thickness of the electron depletion layer, resulting in an increase in resistance [43, 44]. When ZnO/PANI sensor leaves NO2 environment, NO2 loses electrons and desorbs from the surface of the nanocomposite to NO2 (Eq. (6)), thereby gradually restoring the resistance in air.

$${\text{O}}_{{2}} \left( {{\text{gas}}} \right) \, \to {\text{ O}}_{{2}} ({\text{ads}}({\text{adsorbent}}))$$
(1)
$${\text{O}}_{{2}} \left( {{\text{ads}}} \right) \, + {\text{ e}}^{ - } \to {\text{ O}}_{{2}}^{ - } \left( {{\text{ads}}} \right)$$
(2)
$${\text{NO}}_{{2}} \left( {{\text{gas}}} \right) \, \to {\text{ NO}}_{{2}} \left( {{\text{ads}}} \right)$$
(3)
$${\text{NO}}_{{2}} \left( {{\text{ads}}} \right) \, + {\text{ e}}^{ - } \to {\text{ NO}}_{{2}}^{ - } \left( {{\text{ads}}} \right)$$
(4)
$${\text{NO}}_{{2}} \left( {{\text{ads}}} \right) \, + {\text{ O}}_{{2}}^{ - } + {\text{ 2e}}^{ - } \left( {{\text{ads}}} \right) \, \to {\text{ NO}}_{{2}}^{ - } \left( {{\text{ads}}} \right) \, + {\text{ 2O}}^{ - } \left( {{\text{ads}}} \right)$$
(5)
$${\text{NO}}_{{2}}^{ - } \left( {{\text{ads}}} \right) \, \to {\text{ NO}}_{{2}} \left( {{\text{ads}}} \right) \, + {\text{ e}}^{ - }$$
(6)

From the performance test and mechanism analysis, it can be seen that the nanocomposite has good response value at room temperature. It is mainly attributed to two factors: One reason is that the heterogeneous interface formed by PANI and ZnO has high activity, which provides active sites for the adsorption of NO2 on the material. Another reason is that the excellent electron transport ability of PANI enables the electron migration caused by NO2 adsorption to be realized.

4 Conclusion

In summary, ZnO/PANI nanoflake arrays were synthesized on ceramic tubes by a combination of hydrothermal method and vapor phase diffusion method. The gas-phase diffusion method can effectively control the heterostructure by adjusting the PANI diffusion time. The combination of PANI reduces the material resistance and realizes room temperature detection. Abundant n-p heterostructures of the sensor improve the sensing performance to NO2. The response value of the ZnO/PANI sensor to 10.00 × 10–6 NO2 at room temperature is 28.00, the response and recovery time is 32 and 18 s, respectively, and the detection limit is down to 0.01 × 10–6. The improvement of electron transport ability and NO2 gas adsorption ability can be attributed to the large number of active sites provided by the nanosheet array structure and heterostructures. The method of preparing the nanocomposite provides the possibility for the detection of many metal oxides at room temperature and has broad application prospects.