1 Introduction

In near years, the world’s countries reached a joint action to limit global warming, an important idea in an international effort to keep the earth from reaching catastrophic levels. Although the carbon dioxide gas (CO2) is an essential component for the photosynthesis of the planets, however, it is one of the main greenhouse gases that directly contribute to global warming [1,2,3]. The CO2 is a colorless, odorless and non-flammable gas that enters the atmosphere through respiration, deforestation, manufactories and burning fossil fuels [2,3,4,5]. Moreover, it is reported that the prolonged breathing of CO2 (>5000 ppm) can cause some symptoms and respiratory disorders in humans [2,3,4,5,6,7]. Hence, the detection and monitoring of CO2 levels at different humidity by smart sensors for many applications such as greenhouses, exhaust systems, air-conditioning and biotechnological processes is necessary [1, 3, 8]. The many efforts have been focused on developing several kinds of CO2 sensors based on organic and inorganic materials such as semiconductor metal oxides (SMOs) [6,7,8,9,10,11,12,13,14,15,16,17]. Among them, the CO2 resistive-type sensors based on n-type SMOs are widely considered to have a good reliability, accuracy, small size and low-cost production [3, 6,7,8,9,10,11,12,13]. One of the n-type SMOs with a wide band gap of 3.37 eV, a large exciton binding energy of 60 meV, non-toxicity, high electron mobility, easy to be prepared, appropriate response toward CO2 concentrations, is zinc oxide (ZnO) [3, 6, 7, 12, 15].

Kannan et al. [3] have reported CO2 sensor based on nanostructured ZnO thin films which had the response and the response/recovery time of 1.13% and 20/20 s, respectively, toward 1000 ppm CO2 concentration at 300 °C operating temperature. Renn Juang et al. [6] developed the ZnO nanorods structure for a CO2 sensor. They have measured the sensor response, response time and recovery time of about 354%, 10 s and 18 s, respectively, toward 2500 ppm CO2 at 150 °C operating temperature. Righettoni et al. [12] reported the chemo-resistive CO2 sensor based on ZnO nanoplatelets. Their measured sensor response was 2% toward 1000 ppm CO2 concentration at 350 °C operating temperature.

According to the mentioned reports, the ZnO based CO2 sensors have shown a considerable response only at the elevated operating temperatures (>150 °C) regardless of humidity levels. It is reported that the gas adsorption on a sensor surface can be enhanced by increasing the operating temperature [3, 4, 6, 7]. However, the result of high operating temperature in a resistive-type CO2 sensor is the poor long-term stability and high power consumption.

To avoid these problems, the CO2 detection at low operating temperature is needed. In this regard, humidity poses another great challenge [18, 19], because the increase of the humidity significantly impedes the response of the resistive-type CO2 sensor based on the ZnO. It is described that the ambient oxygen molecules can accept electrons from the n-type ZnO at low temperature and humidity, which the result is the creation of the negatively charged oxygen species (O2), formation of the depletion region on the sensor surface elements, and reduction of the ZnO surface active sites [3, 7, 18,19,20,21]. This insulated barrier on the sensor surface causes the CO2 molecules with stable structure and covalence bonds can not react with sensor active sites. On the other hand, the active sites of the COsensor based on the ZnO fill with more O2 ions and water molecules at low temperature and high humidity. The result is a lower sensor response than that low humidity condition [7, 15]. Accordingly, it seems the reduction of the surface depletion region and oxygen ions, and the increase of the gas levels detection ability at different humidity are effective factors to enhanced performance of the resistive-type CO2 sensor based on the ZnO. The use of moisture-sensitive organic filler on the nanostructures of the ZnO is one promising strategy to improve the sensor performance [22,23,24,25]. Zhou et al. [16] reported a surface acoustic wave sensors based on silicon-based polymers with good response toward CO2 concentrations at 70 °C operating temperature and 70% humidity. In this regard, polyvinyl alcohol (PVA) with superior film-filling properties is a great O2 barrier and sensitive to water molecules, which it can enhance the efficiency of the CO2 gas sensor at different humidity [22,23,24,25]. However, it still needs more study on reliable resistive-type CO2 sensor with ability to work at different humidity.

In this paper, we present a simple one-step method to fabricate the 1D-ZnO nanostructures through the hydrothermal method. The ZnO nanostructures assisted by PVA used as CO2 resistive-type sensor at room temperature and various relative humidity (RH).

2 Experimental

2.1 Materials and methods

Zinc nitrate hexahydrate (Zn(NO3)2·6H2O-99% purity), Cetyltrimethylammonium bromide (CTAB-99% purity), ethanol (99.8% purity), hydrochloric acid (HCl-36% concentrated), sodium hydroxide (98% purity), and polyvinyl alcohol (PVA) were purchased from Merck Co, and used for synthesis of the sample.

0.15 g and 2.85 g of CTAB and NaOH, respectively, were dissolved into 40 mL of distilled water to form a transparent solution under vigorous stirring (solution (A)). 4.64 g of Zn(NO3)2·6H2O was dissolved into 40 mL of distilled water under vigorous stirring (solution (B)). Then, the solution (B) was slowly added to the solution (A) under continuous stirring. After 3 h vigorous stirring, the resulted solution was transferred to a Teflon autoclave of 150 mL capacity and was heated at 90 °C for 17 h. The obtained white sediment solid product was filtered and washed with distilled water and absolute ethanol several times, and was dried in oven at 100 °C. The obtained ZnO powder was used as the sensitive CO2 material.

One gram of PVA was added into 99 mL of deionized water and the result was heated at 90 °C for 3 h under vigorous stirring to obtain a transparent PVA solution of 1 wt%. 2 g of the ZnO nanopowder was added in 10 mL of deionized water and the result was ultrasonicated for 15 min and magnetically stirred for 2 h to achieve a milky solution. The prepared solution was added into the 3 mL of 1 wt% PVA solution, and then it was stirred carefully by magnetic stirring to obtain a solution containing the ZnO nanostructures. Finger type Cu-interdigited electrodes were patterned onto 20 × 20 mm2 area of an epoxy glass substrate for sensor substrate preparation. The prepared homogenous solution was deposited on the cleaned sensor substrate using the spin coating technique at a speed of 500 RPM and dried under a vacuum oven at 100 °C. The prepared sensor based on the film of the ZnO nanorods assisted by PVA was briefly called ZFS. The gas sensing experiment was carried out in an enclosed polyethylene chamber. The sensor response is defined as [3, 4, 7]:

$${\text{Response }}\left( \% \right)\; = \;\left| {\left( {R_{{{\text{air}}}} - R_{{{\text{gas}}}} } \right)/R_{{{\text{air}}}} } \right|\; \times \;100$$
(1)

where Rair and Rgas are the resistance of sensor in air and gas atmosphere, respectively. The response time and recovery time are important parameters used for characterizing a sensor [4, 6] and they are defined as the time required to reach 90% of the final change in resistance, when the gas is turned on and off, respectively.

2.2 Characterization

X-ray diffractometry (XRD) was carried out using Philips-PW 1730 X-ray diffractometer with copper radiation (Cu-Ka, λ = 1.54 Å) through a graphite monochromator and step-scanning measurements in a range from 10° to 80° 2θ, with a step of 0.04 2θ and a working voltage of 30 kV. The morphological characterization analysis was carried out by field-effect scanning electron microscopy (FESEM) using a TESCAN- MRIA3 instrument at 15 kV, equipped with an energy dispersive X-ray spectroscopy (EDX) detector. The specific surface area was analyzed by Brunauer–Emmett–Teller spectroscopy (BET) method using a BELSORP-MR6 instrument via Nitrogen adsorption–desorption measurements.

3 Results and discussion

3.1 The ZnO characterization

The XRD pattern of the ZnO thin film (ZTF) in Fig. 1a shows all diffraction peaks have been matched well with standard diffraction pattern data of the ZnO (JCPDS card No. 98-006-5172). A series of diffraction peaks can be seen at 2θ = 31.8, 34.5, 36.3, 47.6, 56.6, 62.9, 67.9o that corresponding to (100) (002) (101) (102) (110) (103) (112) of hexagonal wurtzite of the ZnO crystal structure, respectively [20, 26,27,28]. No other impurity phases are detected from the figure. Thus, the results clearly show that the product is pure crystalized ZnO.

Fig. 1
figure 1

a XRD pattern of the ZnO sample. b FESEM image and c EDX pattern of prepared ZnO nanorods. d N2 absorption–desorption isotherms of the ZTF. f The pore-size distribution calculated by BJH method from the desorption curves

Morphology plays an important role in governing the sensor-response kinetics. The typical FESEM image in Fig. 1b clearly displays morphology of nanorods/nanowires for the prepared ZTF with large surface-to-volume ratio. In spite, the fact that the 1D-nanorods show a dispersed distribution, the nanorods diameter and length are rather uniform. Careful examination of Fig. 1b reveals that the nanorods are in the range from 71.87 to 87.82 nm in diameter or more, and typical length is 2 µm or less. Figure 1c displays the EDX spectra of the ZTF. The calculated atomic percentage is tabulated in the table of Fig. 1c. The peaks of Zn and O can be clearly observed in the EDX spectrum and no diffraction peaks from any other elements are detected that reveal the phase purity of the ZTF.

Nitrogen adsorption–desorption measurements were conducted to get more information about the inner architectures of the hierarchically porous structures. Figure 1d shows the nitrogen adsorption and desorption isotherms of the ZTF versus relative pressure (P/Po) at the temperature of adsorption (P and Po are the equilibrium and the saturation pressures of adsorbents, respectively). The isotherms exhibit hysteresis loop at P/Po range of 0.4–0.8 that illustrate the existence of mesopores with the diameter of 5–50 nm [29, 30]. Moreover, at higher pressures the diagram slope shows increased uptake of adsorbate as pores become filled, inflection point typically occurs near completion of the first monolayer [23,24,25]. Then, the adsorbed nitrogen amount rises very steeply at P/Po > 0.8, that suggests the existence of macropores (>50 nm in diameter) in the first monolayer of the sample surface [29,30,31]. The specific surface area of the ZTF was 7 m2 g‒1 and the average pore size was about 8 nm which was calculated using the BJH method and the desorption branch of the nitrogen isotherm (Fig. 1e).

3.2 The CO2 sensing behavior of the sensor

It is well known that the response of a resistive-type SMO gas sensor at environmental conditions is highly influenced by RH. Therefore, the various CO2 levels are used to perform gas-sensing tests at varying RH to examine RH. Moreover, a resistive-type gas sensor has a built-in variable resistor, which changes with different levels of the target gas. The lower or higher detection limit of a resistive-type sensor determines through its measurable resistance changes. Accordingly, the lower detection limit of our CO2 sensor was 0.037 vol%, and other gas levels (as the multiples of 0.037 vol%) have been used to achieve the higher detection limit. Hence, the dynamic changes of the ZFS response to various CO2 concentrations are measured under different RH and plotted in Fig. 2a–d. As shown in Fig. 2, the output response signal of the ZFS increased after gas injection and not only it reached a steady-state point in tens of seconds, but also it slightly increased with an increasing gas concentration in various RHs. These response shifts are mainly due to the change of adsorption of gas molecules on the components of the sensor surface [6]. Moreover, the sensor response did not significantly change with increasing gas level from 0.15 to 0.3 vol% at different RH, which is presumably due to the saturation of the sensor surface active sites. At the steady-state point, the pure air was introduced into the test chamber and the sensor response value was found to decrease rapidly and reached the baseline response value after the tens of seconds. According to the results of Fig. 2, the dependence of the ZFS response to RH toward different CO2 concentrations was calculated and tabulated in Table 1. The response changes of the ZFS have been decreased with an increasing RH in different gas levels. The highest response of 120.3% belongs to 0.3 vol% gas at 30% RH, while the lowest response of 81% belongs to 0.037 vol% gas at 90% RH. Herein, the highest response of sensor toward 0.3 vol% gas level at different RH is probably due to the penetration and interaction of very sufficient gas molecules with the surface components of the sensor.

Fig. 2
figure 2

The dynamic sensing characteristics of ZFS at a 30%, b 50%, c 70%, d 90% RH atmosphere, a different gas concentration and operating temperature of 27 °C. e The resistant change of ZFS versus time toward 0.037 vol% CO2 under a humidity of 50% RH

Table 1 The response, response time and recovery time of ZFS at different RH and room temperature toward various CO2 concentrations

The response and recovery behaviors are two important characteristics for evaluating the performance of a gas sensor. According to the results of Fig. 2, the ZFS response values versus RHs as the function of gas levels plotted in Fig. 3a. The response of the ZFS has been decreased in different gas levels through an increase of RH from 30 to 90%, but the shift of the response toward 0.037 vol% CO2 was lower than other gas concentrations. Moreover, it seems that the effect of gas concentration on the ZFS response depends on RH levels because the more active surface sites of the sensor were occupied by water molecules at high RH that cause less reaction between gas molecules and surface-active sites occur. A linear relationship predicts between the ZFS responses and RH levels was observed in various gas concentrations, fitted to y = ax + b with an acceptable regression analysis, as shown in Fig. 3a. The response/recovery time of the sensor was calculated from Fig. 2 and tabulated in Table 1. Accordingly, the response time and recovery time of the ZFS versus RH levels at different gas levels plotted in Fig. 3b and c, respectively. Figure 3b and c show that the recovery time decreases and the response time increases under a reduction of CO2 level at various RHs. The increase of the response time and the decrease of recovery time are presumably due to a little reaction of the gas molecules with the sensor surface active sites in low gas concentration. Moreover, an increase of RH from 30 to 90% caused the response time and recovery time of the ZFS decrease, and a linear relationship with high accuracy between the response/recovery time and RH levels at different gas concentrations observed. In addition, the response time (the recovery time) has the highest (lowest) slop at the lowest gas concentration, which is probably due to the direct effect of water molecules on active sites of sensor at low gas level. The lowest response time (recovery time) of 51.3 s (34 s) at 0.3 (0.037) vol% CO2 concentration and 90% RH was obtained. Moreover, despite that the sensor response decreased from 30 to 90% RH in various gas levels, its response time reduced. Then, the ZFS has a favorable response even in high RH. Figure 3d illustrates the long-term stability of the ZFS for several weeks. All measurements were conducted at 0.037 vol% CO2 and two different RHs of 50% and 90%. As shown in Fig. 3d, the sensor has been demonstrated a good long-term stability with a response degradation of 9% after 14 weeks. The selectivity of the ZFS is very important because it is primarily designed to detect specific CO2 gas under given conditions. To test the selectivity of the ZFS, it was treated with 0.037 vol% of different gases. The sensor response toward various gases at different RHs tested and plotted in Fig. 4. This Figure shows the ZFS has good selectivity toward CO2 at various RHs than that other gases such as O2, N2, H2 and CO.

Fig. 3
figure 3

a The response, b response time and c recovery time of ZFS versus RH with different CO2 gas concentration at operating temperature of 27 °C. e The life-time stability of sensor measured during 14 weeks and end of each week. The lines are a guide for eye

Fig. 4
figure 4

The selectivity of the ZFS toward 0.037 vol% gas concentrations of CO2, CO, N2, O2, H2 and H2O at room temperature

Table 2 shows a comparison between the CO2 sensing results of the ZFS with the previous works based on the ZnO in Refs. [3, 4, 6, 7, 12]. In spite of the fact that the response/recovery time of prior reports are better than our sensor, the effect of RH on their sensing features have not been investigated. Moreover, they have high operating temperature (> 150 °C), sensitivity to great gas concentration (> 1000 ppm), and low response. Moreover, our hand-made sensor has long-term stability, CO2 gas selectivity, and a limit of detection below 0.05 vol% CO2 at room temperature and various RHs, which offers it as a commercial reliable CO2 sensor at dynamic conditions.

Table 2 Comparison of the CO2-sensing characteristics of some sensors based on ZnO which reported in previous literatures with the prepared ZFS in the present work

Finally, a CO2 sensor based on the ZnO nanorods without the PVA created, and it did not show response even to 1 vol% CO2 at room temperature and different humidity. Accordingly, the PVA is an effective organic filler to improve the efficiency of the ZnO nanorods for the CO2 detection at room temperature and different humidity.

3.3 Gas sensing mechanism of the ZFS

Figure 5a, b shows the schematic of the possible mechanism for the ZFS response toward CO2 levels. Because, the ZnO nanoroads covered by PVA filler, under moisture ambient, water molecules create the weakly bonds with the composite components and strong bonds with hydroxyl group in PVA units as shown in Fig. 5a [20,21,22,23,24,25]. The result of this reaction lead to the formation of the extra hydroxyl ions on the sensor surface [32,33,34,35]. In this condition, the CO2 gas molecules react with OH¯ part of the bound water molecules on the sensor surface and hydrolysis of the gas molecules creates bicarbonate ions, as shown in Fig. 5a [32,33,34,35]. Subsequently, the bicarbonate ions react with not only the hydroxyl groups of the bound water molecules but also the negatively charged oxygen species. The result is secondary hydrolysis of the gas molecules and the creation of bulk carbonate ions (please see Fig. 5b). Herein, the consumption of electrons by CO2 molecule during interaction with the sensor surface elements leads to the change of not only the sensor resistance and response but also the surface depletion layer [32, 33]. On the other hand, an increase of RH could enhance the number of the bound water molecules on the sensor surface, which leads to decrease of the surface negative charged oxygen species. According to Figs. 2 and 3 results, the decrease of the surface negative charged oxygen ions at high RH apparently caused the secondary hydrolysis of the gas molecules and the creation of the carbonate ions disrupt, which the result is the decrease of the response of the ZFS with increasing RH. As a result, the increase of RH and also the decrease of the CO2 levels could be decreased the ZFS response at environmental conditions. The high (low) response and response time at low (high) RH and various gas levels, suggest the ZFS as a reliable device for room temperature CO2 detection in dynamic conditions. Moreover, to check the accuracy of sensor performance, we prepared and analyzed three identical samples and they had about 3.7% deviation in the results.

Fig. 5
figure 5

a The schematic diagram of the surface adsorbed oxygen and water molecules on the sensor surface and the hydrolysis of CO2 under humidity. b The scheme of secondary hydrolysis of CO2 and sensing mechanism of the ZFS

4 Conclusion

In this work, 1D-nanorodes of the ZnO were synthesized by hydrothermal method and used for CO2 detection at dynamic situations. XRD, FESEM, EDX and BET analysis confirm (a) the formation of mesoporous structure, (b) the hexagonal wurtzite structure of pure crystallized ZnO, and (c) the creation of 1D-nanorods morphology in the ZFS. The CO2 gas sensing properties of the ZFS were carefully studied. The sensor response and selectivity were examined for low level of different gases such as CO2, CO, N2, O2, H2 and H2O. A humidity compensation method is applied to the accuracy study of the sensor response at different RHs. The results demonstrate that the optimal sensor response depends on RH value of the test atmosphere and a linear relationship predicts between the sensor response and RH values was observed at various CO2 concentrations. The sensor was showed the responses of 93%, 86%, 83% and 81% toward 0.037 vol% of CO2 concentrations under 30%, 50%, 70% and 90% RH, respectively. In spite of the fact that the recovery time increased and the response time decreased with increasing CO2 concentration at various RHs, an increase of RH from 30 to 90% led to reduce the response time and recovery time in various gas concentrations.