Introduction

The increasing emissions of toxic gases like carbon monoxide (CO) and methane (CH4) from household sources, vehicle exhaust, and industrial operations are a severe threat to human health and the environment1. The most highly flammable greenhouse gas, CH4, is the main cause of global warming, while CO is a colorless, odorless gas that reacts strongly with hemoglobin to alter oxygen delivery in the human body2. Thus, the development of high-fidelity, efficient, and accurate gas sensors is of high importance for environmental monitoring and safety management3. Nanomaterials are increasingly regarded as advanced materials because their distinctive physicochemical, structural, and functional characteristics support transformative applications across energy, biomedicine, food science, and environmental technologies, while simultaneously enabling highly effective sensing of environmental pollutants, biomedical markers, humidity variations, hazardous gases, and explosive substances4. Metal oxide semiconductors (MOS) remain at the forefront of gas sensor technology because of their promising composition of high sensitivity, high stability, and low cost. These MOS materials, such as zinc oxide (ZnO), nickel oxide (NiO), and tin oxide (SnO2), continue to be in-depth researched. Their room-temperature operation capabilities with their broad band gaps, their tunable morphologies that provide accurate control of active sites, and the creation of novel, simple synthesis processes, which heighten their sensing ability, are the reasons why they are being given much attention5,6,7. SnO2 is one of the most favored n-type semiconductors with a vast potential for CO and CH4 sensing. Its high electron mobility as well as excellent gas adsorption properties are the key reasons behind this performance8. In a similar manner, ZnO also responds sensitively to reducing gases because it has a high surface-to-volume ratio as well as oxygen vacancy availability9. Conversely, the p-type semiconductor NiO is well known for enhancing sensor selectivity and for its role in the creation of efficient p-n heterojunctions with n-type metal oxides7. Recent studies illustrate that surfactants, for example, cetyltrimethylammonium bromide (CTAB), can efficiently modify the active sites, porosity, and surface morphology of nanostructured materials during synthesis, enhancing their gas sensing capacity10. In addition, hybridization of conducting polymers with metal oxides, e.g., poly (3,4-ethylenedioxythiophene) polystyrene sulfonate (PEDOT: PSS), is a promising method to fabricate p–n heterojunctions, reduce response/recovery times, and improve sensitivity through improved charge transfer properties11,12. Heterojunction-based nanostructures are increasingly important in sensing research because the interfacial charge separation they provide significantly enhances sensitivity, selectivity, and overall gas-sensing performance13. The hydrothermal process is extremely beneficial in fabricating such nanostructures owing to its straightforwardness of use, low temperature processing, and capability to produce highly crystalline material with controlled morphologies14. Hydrothermally synthesized MOS nanostructures for gas sensing were reported in several studies; for instance, Abbas et al.15 employed ZnO nanorods and Sharma, K.K et al.16 synthesized a nanostructured cubic phase SnO2 to illustrate enhanced CO sensing, and Jaiswal et al.17 employed SnO2 nanosheets to realize higher CO2 reduction. The amount of work comparing ZnO, NiO, and SnO2 gas-sensing performance synthesized with identical conditions but involving CTAB-directed growth and PEDOT: PSS incorporation is limited. This study explores the CO and CH4 gas sensing capability of ZnO, NiO, and SnO2 nanostructures grown using a CTAB-mediated hydrothermal process. Surfactant-directed growth influence on morphology and role of PEDOT: PSS in constructing heterojunctions with these oxides are explored systematically. Based on a comparative study of the three materials, the most suitable candidate for the detection of CO and CH4 is presented, which is useful when designing high-performance gas sensors.

Literature review of metal oxide nanostructures for CO and CH4 gas sensing

With emphasis on the detection of CO and CH4, Table 1 presents an overview of the latest work on the gas sensing capability of hydrothermally synthesized metal oxides, situating the present work within its context. It gives prominence to important factors such as operating temperature, gas sensing response, composition, and structure.

Table 1 Recent literature on CTAB-assisted metal oxides and PEDOT: PSS for gas sensing.

Research gap and study contribution

The potential of materials like PEDOT: PSS, CTAB, and metal oxides to enhance electrical conductivity and sensing capability is highlighted by recent developments in nanocomposite-based gas sensors. Nevertheless, little is known about how these elements can work together, such as when PEDOT: PSS layers are combined with CTAB–SnO2/ZnO heterostructures. While industrial gases like carbon monoxide (CO) and methane (CH4) have received little attention, the majority of published investigations focus on particular metal oxides that target volatile organic compounds (VOCs) or humidity detection. Furthermore, several high-performing designs use expensive or complicated materials (such as MXenes), which makes it harder to fabricate sensors on a large scale at a reasonable cost. In order to overcome these constraints, the current work prepares ZnO, NiO, and SnO2 nanostructures using CTAB-assisted hydrothermal synthesis in identical conditions, ensuring a direct comparison of their gas-sensing capabilities. By forming p–n heterojunctions through integration with the p-type conductive polymer PEDOT: PSS, response and recovery times are accelerated, operating temperatures are decreased, and charge transfer is improved. This study simultaneously fills important gaps in dual gas detection (CO and CH4), morphology-controlled synthesis, and practical p–n heterojunction design by methodically examining all three oxides in a single experimental environment. The method offers a scalable and economic path to high-performance gas sensors appropriate for industrial safety and environmental monitoring applications.

Materials and methods

Materials

The synthesis of oxide nanostructures was carried out using high-purity metal precursors such as tin(IV) chloride pentahydrate (SnCl4·5 H2O), zinc nitrate hexahydrate (Zn(NO3)2·6 H2O), and nickel nitrate hexahydrate (Ni(NO3)2·6 H2O). In order to control the shape and surface properties of nanoparticles, CTAB acted as a surfactant. A p-type conducting polymer (PEDOT: PSS) was chosen because of its p-type conductivity and its ability to create a p–n heterojunction with SnO2, ZnO, and NiO, increasing the charge separation at this interface and enhancing the electrical response of the sensor for reducing gases. All compounds were utilized just as originally provided, requiring no additional purification. Both the synthesis and post-treatment processes employed ethanol and deionized water as solvents.

Synthesis of CTAB-assisted metal oxide nanostructures

Fig. 1
Fig. 1The alternative text for this image may have been generated using AI.
Full size image

Schematic illustration of the synthesis methods used for SnO2, ZnO, and NiO nanomaterials.

ZnO, NiO, and SnO2 were all individually synthesized by a hydrothermal process24 with CTAB added to change shape and enhance surface activity. For each oxide, the surfactant-assisted precursor solution was made by dissolving 2 moles of CTAB in 80 milliliters of deionized water. Next, the addition of the appropriate metal precursor: tin(IV) chloride for SnO2, nickel nitrate for NiO, and zinc nitrate for ZnO. For four hours, the solutions were kept at 90 °C to facilitate the nucleation and growth of nanostructures in Teflon-lined stainless-steel autoclaves. The precipitates were extracted by centrifugation, repeatedly washed with ethanol and deionized water, and then dried at 60 °C after cooling to ambient temperature. Then, as shown in Fig. 1, calcination was carried out at 400 °C to improve phase purity and crystallinity. Each oxide was prepared in the same procedure, ensuring a controlled comparison of surface properties, morphology, and ensuing gas-sensing ability. ZnO, NiO, and SnO2 nanostructures were produced using the synthesis conditions shown in Table 2.

Table 2 Synthesis parameters of metal oxide nanostructures.

Integration with PEDOT: PSS

To improve charge transport and sensor response, PEDOT: PSS was applied to the individual metal oxide powders (paste) to create p–n heterojunctions. Acetone, ethanol, and deionized water were used to clean fluorine-doped tin oxide (FTO) glass substrates, which were then dried under nitrogen. To increase adhesion and electrical conductivity, PEDOT: PSS was spin-coated25 onto the oxide layer for 60 s at 3000 rpm, and then annealed for 30 min at 120 °C, as illustrated in Fig. 2. Effective electron–hole separation and improved gas-sensing performance were made possible by this process, which ensured consistent polymer coverage over the nanostructured oxide surfaces.

Fig. 2
Fig. 2The alternative text for this image may have been generated using AI.
Full size image

Fabrication of the sensor device showing the layer-by-layer structure made up of the FTO substrate, Ag, PEDOT: PSS, and sensing layer.

Material characterizations

The synthesized nanostructures have been comprehensively characterized in terms of their morphological, structural, and chemical characteristics. X-ray diffraction (XRD) was used to determine the phase purity and crystal structure. The size, shape, and surface characteristics of the particles were revealed using field-emission scanning electron microscopy (FESEM analysis). Elemental composition and oxidation states were verified by energy-dispersive X-ray spectroscopy (EDS). Brunauer–Emmett–Teller (BET) surface area analysis was performed for measuring the specific surface area and porosity. The optical band gap of the synthesized materials was estimated through UV–Vis analysis, which gives valuable information concerning their electrical properties and photon interaction efficiency. The nature of electrical transport in terms of charge carrier dynamics and junction behavior was analyzed through current–voltage (J–V) measurements. The interfacial charge transfer resistance and electrical concepts affecting the gas sensing mechanism have been established using electrochemical impedance spectroscopy (EIS). In addition, these methods establish insight into how the chemical and physical characteristics of each oxide were affected by CTAB-assisted hydrothermal synthesis and thus had an effect on the performance of gas sensors.

XRD

The crystalline structure and phase purity of the synthesized NiO26, ZnO27, and SnO228 nanoparticles were calculated by XRD analysis, and the findings are shown in Fig. 3a–c. A face-centered cubic structure was established by the characteristic peaks in the diffraction pattern of the NiO sample (JCPDS Card No. 47-1049). All of the ZnO nanoparticles’ diffraction peaks were consistent with the standard reference (JCPDS Card No. 36-1451) with no deviation, which meant they had a hexagonal wurtzite structure. Based on the reference data from JCPDS Card No. 41-1445, the pattern observed for the SnO2 sample confirmed a tetragonal rutile structure.

Fig. 3
Fig. 3The alternative text for this image may have been generated using AI.
Full size image

XRD patterns of the synthesized nanostructures of (a) NiO, (b) ZnO, and (c) SnO2.

The high phase purity of the synthesized metal oxides was validated in every instance by the absence of unwanted diffraction peaks, confirming the effectiveness of the adopted synthesis process in producing phase-pure nanomaterials for further gas sensing investigation. For the synthesis of ZnO, NiO, and SnO2, the same high concentration of CTAB was used to develop a consistent, structure-directing environment. However, the completely distinct crystallographic properties that were revealed by XRD, where ZnO formed large, well-defined crystallites, NiO exhibited intermediate characteristics, and SnO2 formed the smallest, most defect-rich nanocrystals, indicate that the effectiveness of CTAB is not universal and is instead mainly controlled by the particular composition of the metal oxide precursor. On the other hand, the growth of ZnO was less restricted by the CTAB surfactant, favoring thermodynamic crystal growth and producing a more perfect, stable lattice. This suggests that SnO2 nucleation and growth were best regulated by the CTAB surfactant under these conditions, resulting in a high defect density perfect for gas adsorption. X-ray diffraction peak broadening was used to examine the synthesized samples’ crystallite size and lattice flaws. The Debye–Scherrer formula (1)29 was used to calculate the average crystallite size (D).

$$D =\:\frac{k\lambda\:\:}{\beta\:\:cos\theta\:}$$
(1)

where λ is the X-ray wavelength (Cu Kα = 0.154 nm), β is the full width at half maximum (FWHM) of the diffraction peak in radians, θ is the Bragg angle, and k is the Scherrer constant (0.9)30 (2) was used to estimate the microstrain (ε) caused in the powders.

$$\varepsilon = (\:\frac{\beta\:\:}{\:4tan\theta\:})$$
(2)

In addition, using Eq. (3), the dislocation density (δ), which is the length of dislocation lines per unit volume, was calculated. Table 3 summarizes the determined values of D, ε, and δ for the NiO, ZnO, and SnO2 samples.

$$\delta = \:\frac{1\:}{\:{D}^{2}}$$
(3)

From Table 3, it can be observed that the X-ray diffraction investigation shows a basic relationship between the three materials’ defect density and crystallinity. With the largest crystallites (29.8 nm), lowest micro-strain (0.002), and least dislocation density (0.001 nm−2), ZnO exhibits a highly ordered crystalline structure that should provide both exceptional operational stability and repeatability. A very defective lattice is indicated by SnO2, which has the smallest crystallite size (2.36 nm), highest micro-strain (0.025), and maximum dislocation density (0.185 nm−2). Since SnO2 is nanostructured and defect-rich, it has a large surface area and many active sites, which makes it very promising for high-sensitivity gas detection.

Table 3 XRD crystallite sizes calculated from Sherrer’s equation.

NiO has values in the middle, indicating a profile that strikes a compromise between stability and sensitivity. Therefore, ZnO’s high crystalline quality supports durable and dependable sensing the entire time, while SnO2 is projected to be the most sensitive material, although its performance may be compromised by long-term instability.

FESEM analysis

FESEM was used to examine the surface morphology of the CTAB mixed NiO nanostructure, as illustrated in Fig. 4a. Aggregated nanoparticles with irregular spherical to polyhedral forms are obvious in the photograph. With both smaller nanoparticles decorating the surfaces of bigger grains, the particles’ size distribution is not uniform, suggesting that CTAB functions as a surfactant to regulate nucleation and growth. The closely linked grains of NiO particles, as seen in the micrograph, can improve charge transport characteristics and the surface-to-volume ratio. The existence of bigger agglomerates and finer nanoparticles indicates that CTAB effectively increased the synthesis-related reduction in particle size, which enhanced dispersion. Because it offers more active sites for the adsorption and desorption of analyte molecules, this structured shape is beneficial for gas sensing applications. Furthermore, the rough surface structure and porous nature seen in the FESEM image suggest the possibility of improved contact with the environment, which is very desirable in catalytic and sensing applications. These morphological characteristics, which affect the overall microstructural architecture of NiO as well as the grain connectivity, validate the effective integration of CTAB during synthesis.

Fig. 4
Fig. 4The alternative text for this image may have been generated using AI.
Full size image

FESEM images of the as-synthesized nanostructures of (a) NiO, (b) ZnO, and (c) SnO2.

The FESEM image of ZnO31 (Fig. 4b) shows unique rod-like and hexagonal grains. The grains are more regular in size, smooth, and possess distinct boundaries. The above image illustrates the controlled crystallization of ZnO upon synthesis. The larger grains adhere to each other to create a close and dense structure. Above the surface, the structure might enable efficient charge transfer. Regular particle size distribution enables a reproducible sensing response. Smooth surfaces deliver stability, whereas edges offer reactive adsorption sites. Taking everything into consideration, the FESEM verifies the formation of crystalline ZnO structures. The FESEM image of SnO2 (Fig. 4c) shows huge, rough-surfaced agglomerated clusters. An individual cluster consists of strongly agglomerated smaller nanoparticles. Irregular morphology suggests fast nucleation followed by clustering. Roughness of the surface gives a large number of active sites for interaction. A close-packed structure guarantees the mechanical stability of the material. The surface is fine-grained, implying multi-scale particle formation. The shape promotes adsorption and desorption during sensing processes. SnO2 has an agglomerated, porous structure that is typically beneficial for gas sensing. With emphasis on the role of surface topology in influencing sensing behavior, Table 4 presents the morphology features of NiO, ZnO, and SnO2 nanostructures as evaluated by FESEM analysis, along with the individual gases’ sensing merits, demerits, and full potential of each material.

Table 4 Comparison of CTAB-NiO, ZnO, and SnO2 morphologies and gas sensing potential.

Morphological and elemental distribution analysis

In Figs. 5, 6 and 7, morphological and elemental distributions of three various metal oxides-NiO, ZnO, and SnO2-are visualized using electron microscopy (EM) and elemental distribution studies. The NiO particles’ morphology at a 2 μm scale is illustrated in the EM micrograph (panel a) of NiO in Fig. 5, showing a uniform distribution with grain structures of an irregular shape. Nickel presence is evidenced by the green areas in panel b of the EDS stacked image. Oxygen distribution is depicted in the O Kα1 image (panel d), while the nickel is uniformly distributed across the sample, as evidenced by the Ni Kα1 X-ray map (panel c). The Cl Kα1 X-ray map (panel e) reveals the lack of chlorine, proving the high purity of the NiO sample.

Fig. 5
Fig. 5The alternative text for this image may have been generated using AI.
Full size image

Distributions of NiO elements and morphology panels (ae) include the elements as follows: EM image, EDS layered image, Ni Kα1 X-ray map, O Kα1 map, and Cl Kα1 X-ray map, respectively.

ZnO particles are particulate in shape, having clear outlines at a size of 500 nm, as in (Panel a) Fig. 6. Panel b, the EDS layered image, displays the distribution of zinc in green with minimal overlap with other elements. Panel c of the Zn Kα1 X-ray map confirms the even distribution of zinc, while panel d of the O Kα1 map shows the even distribution of oxygen throughout the sample. Similar to the NiO sample, the Cl Kα1 X-ray map (panel e) confirms the composition of pure zinc oxide by displaying a very small amount of chlorine. The EM picture (panel a) of SnO2 in Fig. 7 displays irregularly formed clusters of particles at a 2.5 μm scale. Tin (green) is clearly distributed throughout the sample, according to the EDS layered image (panel b), with some regions displaying overlapping signals.

Fig. 6
Fig. 6The alternative text for this image may have been generated using AI.
Full size image

Elemental and morphological distributions of ZnO panels (a,b): EM and EDS overlaid images. X-ray maps of Zn Kα1, O Kα1, and Cl Kα1 are shown in panels (ce), respectively.

The distribution of tin is shown by the Sn Lα1 X-ray map (panel c), while the existence of oxygen is confirmed by the O Kα1 map (panel d). Moreover, the low chlorine content on the Cl Kα1 map (panel e) indicates no considerable impurities. The composition and distribution of these metal oxides at the micro level are understood by these images, providing complete information on their structural and elemental properties.

Fig. 7
Fig. 7The alternative text for this image may have been generated using AI.
Full size image

Distributions of SnO2 in morphology and elements EM image (a), EDS layered image (b), X-ray maps of Sn Kα1, O Kα1, and Cl Kα1 (c).

Energy dispersive X-ray spectroscopy

The elemental composition and purity of the developed NiO, ZnO, and SnO2 nanostructured materials are confirmed by the EDS spectra displayed in Fig. 8a–c. The prominent peaks of Zn and O in Fig. 8b demonstrate the synthesis of ZnO, whereas the dominant peaks of Ni and O in Fig. 8a justify the successful formation of NiO. Similarly, the formation of SnO2 is confirmed by the typical peaks of Sn and O in Fig. 8c, while the weak signals of Cl may come from precursor residues after thorough washing. Their suitability for additional gas-sensing applications is ensured by the overall EDS analysis, which verifies that all three metal oxide nanomaterials were synthesized with great purity and precise proportional composition.

Fig. 8
Fig. 8The alternative text for this image may have been generated using AI.
Full size image

EDS spectra of (a) NiO, (b) ZnO, and (c) SnO2 nano materials.

Optical absorption and band gap analysis

Figure 9a–f illustrates the UV–Vis absorption and Tauc plot analysis of the synthesized NiO, ZnO, and SnO2 nanomaterials. The band gap is determined by Eq. (4).

$${(\alpha h\nu )^n} = A(h\nu - {E_g})$$
(4)

where α is the absorption coefficient, is the photon energy (eV), A is the proportionality constant, Eg is the optical band gap energy (eV), and n is the electronic transition. In Fig. 9a,b, NiO shows a sharp absorption edge near 390 nm, and the Tauc plot (αhν)1/2 = A (hν-Eg) with n = 2 (indirect transition) gives an optical band gap of 2.52 eV. Figure 9c,d presents ZnO with an absorption edge around 400 nm, and from the plot (αhν)2 = A(hν − Eg) with n = 1/2 (direct transition), a band gap of 2.39 eV is obtained. Similarly, Fig. 9e,f shows SnO2 exhibiting a clear UV edge, with n = 1/2 indicating a direct band gap of 2.32 eV35. The observed reduction in band gap values across all samples is attributed to the CTAB surfactant, which alters surface morphology and introduces defect states that enhance charge transfer, thereby improving optoelectronic and gas-sensing performance. The specific optical parameters, such as semiconductor type, absorption edge, and band gap energy, are shown in Table 5.

Fig. 9
Fig. 9The alternative text for this image may have been generated using AI.
Full size image

(a,c,e) Optical absorption of NiO, ZnO, SnO2, and (b,d,f) Band gap analysis of sized NiO, ZnO, SnO2 nanomaterials, respectively.

Table 5 Comparative analysis of NiO, ZnO, and SnO2 nanomaterials for gas sensing performance.

I–V response analysis of surfactant-modified NiO, ZnO, and SnO2 nanostructures

The I–V characteristics36 of NiO, ZnO, and SnO2 nanostructures are presented in Fig. 10. The ohmic contact between the electrodes and the sensing layer is confirmed by the curves’ linear and symmetric response to applied voltage. Reliable current conduction and effective charge transfer are guaranteed by this electrical behavior, both of which are necessary for gas sensing to function. The measured current values for NiO, ZnO, and SnO2 are roughly 0.2 × 10−2 A, 0.4 × 10−2 A, and 1 × 10−2 A, respectively, with an applied bias of 0.2 V. Because of its greater charge carrier mobility and lower interfacial resistance, SnO2 exhibits a stronger current response, which enhances electron transit across the sensing film. Owing to its p-type conduction and decreased hole mobility, NiO has the least current response, whereas ZnO has a moderate current value. Better gas sensing capability is closely correlated with SnO2’s greater conductivity at 0.2 V. Higher sensitivity and faster response time result from a stronger baseline current, which makes it easier to modulate resistance when target gas molecules are adsorbed. SnO2 is therefore the most promising of the three materials for resistive-type gas sensing applications since it exhibits the best electrical properties for effective gas adsorption and desorption reactions.

Fig. 10
Fig. 10The alternative text for this image may have been generated using AI.
Full size image

I–V properties of ZnO, NiO, and SnO2 nanostructures measured between − 1.0 and + 1.0 V.

EIS characterization of surfactant-assisted SnO2, ZnO, and NiO nanostructures

As shown in Fig. 11, the electrochemical impedance spectroscopy (EIS) investigation37 identifies unique electrical properties for NiO, ZnO, and SnO2 sensing materials.

Fig. 11
Fig. 11The alternative text for this image may have been generated using AI.
Full size image

Nyquist plots of NiO, ZnO, and SnO2 at room temperature (Zre vs. Zim).

NiO shows the highest charge transfer resistance (Rct) of about 2.1 kΩ among the samples, suggesting a comparatively slower electron transit and limited conductivity. This could be because NiO is a p-type semiconducting material with fewer accessible charge carriers. In contrast, ZnO exhibits a moderate resistance of 0.8 kΩ, which is indicative of higher electrical conductivity because of its enhanced carrier mobility and n-type properties. At 0.45 kΩ, SnO2 exhibits the lowest resistance, indicating the most effective charge transfer capacity and improved interfacial contact between the surface and the adsorbed gas molecules. Table 6 shows that on reducing the resistance from NiO to SnO2, capacitance increases and relaxation frequency (fmax) changes, which indicate quicker response and recovery characteristics. The findings demonstrate that compared to NiO and ZnO, SnO2 has superior electrochemical performance, making it more suitable for rapid and sensitive gas sensing.

Table 6 EIS parameters showing capacitance values (Cdl), fmax, and Rct for NiO, ZnO, and SnO2.

The relationship between BET surface area analysis and gas sensing behavior

The nitrogen adsorption–desorption isotherms of NiO, ZnO, and SnO2 nanostructures are displayed in Fig. 12a. The presence of mesoporous structures that promote gas diffusion and adsorption is confirmed by the characteristic type IV isotherm with a H2-type hysteresis loop demonstrated by all samples. Monolayer adsorption is responsible for the slow increase in adsorption at lower relative pressures (P/Po < 0.3), but multilayer adsorption and capillary condensation within mesopores are responsible for the sharp increase at higher pressures (P/Po > 0.8). SnO2 has the largest absorption of nitrogen of all the materials under study, followed by ZnO and NiO, indicating a bigger surface area and higher pore volume. Because it increases the availability of active sites and speeds up gas–solid interactions, the presence of such mesoporous frameworks is crucial for gas sensors38,39. The linearized BET plots for NiO, ZnO, and SnO2 are shown in Fig. 12b. As shown in Table 7, surface area, pore volume, and pore diameter were computed using the acquired slope and intercept values. Accuracy of the BET data is confirmed by the plots’ linearity (R2 = 0.998). With the biggest surface area and most consistent pore distribution, SnO2 shows the lowest slope and highest R2 value. These textural properties contribute to improved surface reaction rates and quick gas diffusion, which directly affect the sensor response and recovery times.

Fig. 12
Fig. 12The alternative text for this image may have been generated using AI.
Full size image

(a) Adsorption–desorption isotherms for N2, (b) The BET surface area of SnO2, ZnO, and NiO samples.

Table 7 BET surface area and pore characteristics of NiO, ZnO, and SnO2 nanostructures.
Correlation between BET data and gas sensing mechanism

The BET surface study can infer that surface morphology and porosity exert a great influence on gas sensing efficiency. SnO2 possesses the largest specific surface area and smallest pore width and shows a well-developed mesoporous structure, facilitating efficient gas adsorption. In this work, SnO2 exhibits such an ideal characteristic, which brings about an improvement in selectivity, fast recovery, and enhanced sensing response. ZnO, a p-type semiconductor, has a moderate surface area and pore width and thus exhibits adequate gas diffusion behavior, while NiO, a semiconductor with inferior surface areas, provides fewer active adsorption sites and hence lower gas sensitivity. Moreover, the mesoporous structure of SnO2 assured reliable and repeatable adsorption cycles, in good agreement with Gibson et al.‘s40 work, where an important relation between BET surface properties and stability of the gas response has been identified. SnO2 is much better in gas sensing compared to the other two oxides under investigation due to its higher specific surface area, improved pore structure, and more efficient charge exchange mechanism between adsorbed gas molecules and surface oxygen species. The PEDOT: PSS/Oxide heterojunction is considered to be responsible for the increased current and reduced interfacial resistance as it offers an efficient charge transfer route.

Gas sensing experimental setup and working principle

Figure 13 presents the experimental setup41 schematically to assess the gas sensing performance of fabricated sensors based on NiO, ZnO, and SnO2 towards CO and CH4 gases. The system consists of a stainless steel gas chamber with a controlled heater and is also equipped with mass flow controls (MFCs) and accurate gas supply lines connected with traditional gas cylinders containing CO, CH4, and N2. Nitrogen is used as the carrier and purging gas in order to dilute the other gases accurately and remove any leftover gas in between successive measurements. The sensor element is fixed on a heating platform inside the gas chamber, which keeps the working temperature steady and tailored to the needs of each material. The heater is connected to a programmable DC power supply to precisely regulate the working temperature, as gas sensing responses in metal oxides are strongly temperature-dependent. Electrical connections from the sensor are routed to a Keithley source meter, which records real-time resistance or current changes during gas exposure. The mass flow controllers precisely regulate the flow rate and concentration of the test gases. The target gas (CO and CH4) is mixed with carrier nitrogen to achieve the desired ppm-level concentration before entering the chamber. Once the gas mixture reaches equilibrium within the chamber, the variation in sensor resistance is recorded continuously. Upon completion of the gas exposure cycle, pure N2 is passed again to remove residual gas molecules and to allow the sensor to recover to its baseline resistance value.

Gas sensing mechanism

Gas sensing mechanism for CTAB-Assisted NiO, ZnO, and SnO2 Nanostructures Toward CO and CH4 is shown in Fig. 14. The mechanism of gas sensing for CTAB-assisted NiO42, ZnO, and SnO2 nanostructures toward CO and CH4 (Fig. 14a,b) is mainly dominated by the adsorption of atmospheric oxygen along with a redox interaction between chemisorbed oxygen ions and the reducing gases. Upon exposing the sensor to air, oxygen molecules adsorb on the metal oxide surface, extracting electrons from either the conduction band (n-type) or the valence band (p-type), to yield ionic surface oxygen species. It can be represented as Eqs. (57)43.

$${O_2}\left( {gas} \right){\rm{ }} \to {\rm{ }}{O_2}^ - \left( {ads} \right)$$
(5)
$${O_2}\left( {gas} \right){\rm{ }} + {\rm{ }}{e^ - }{\rm{ }} \to {\rm{ }}{O^ - }\left( {ads} \right)$$
(6)
$$O\left( {gas} \right){\rm{ }} + {\rm{ }}2{e^ - }{\rm{ }} \to {\rm{ }}{O^{2 - }}\left( {ads} \right)$$
(7)

These reactions result in a surface depletion layer due to electron withdrawal, thereby increasing the resistance of n-type ZnO and SnO2.

Fig. 13
Fig. 13The alternative text for this image may have been generated using AI.
Full size image

A schematic diagram of experimental gas sensing setup.

The PEDOT: PSS overlayer forms a p–n heterojunction44 with the n-type metal oxide (ZnO and SnO2), creating a built-in electric field which enhances the electron exchange during gas adsorption and, accordingly, accelerates resistance modulation. Such an interfacial effect brings about sensitivity enhancement and faster response–recovery behavior. In contrast, electron removal in p-type NiO increases the hole concentration, thus forming an accumulation layer and decreasing the baseline resistance. When exposed to reducing gases such as CO and CH4, the gas molecules react with these ionized oxygen species. This reaction injects electrons back into the semiconductor, directly modulating the resistance. The reactions proceed according to Eqs. (8) and (9).

$$CO{\rm{ }} + {\rm{ }}{O^ - }{\rm{ }} \to {\rm{ }}C{O_2}{\rm{ }} + {\rm{ }}{e^ - }$$
(8)
$$C{H_4}{\rm{ }} + {\rm{ }}4{O^ - }{\rm{ }} \to {\rm{ }}C{O_2}{\rm{ }} + {\rm{ }}2{H_2}O{\rm{ }} + {\rm{ }}4{e^ - }$$
(9)

The electrons that return to n-type ZnO/SnO2 decrease the width of the depletion layer and sharply reduce the resistance.

Fig. 14
Fig. 14The alternative text for this image may have been generated using AI.
Full size image

Gas sensing mechanism for CTAB-assisted NiO, ZnO, and SnO2 nanostructures toward CO and CH4 (a) at room-temperature gas sensing, and (b) PEDOT: PSS/NiO (p–p heterojunction).

In p-type NiO, electrons neutralize holes and reduce the hole concentration, hence increasing the resistance. Accordingly, surface area enhancement, prevention of particle agglomeration, and the addition of more active adsorption sites are some of the important roles played by CTAB. This accelerates the reaction between surface oxygen ions and target gases due to enhanced gas diffusion. Among the materials proposed, SnO2 shows the strongest response due to its higher oxygen-vacancy density, providing more electron-trapping sites and thereby allowing for stronger charge-transfer interactions.

Room-temperature gas sensing pathway

Because of the unavailable activation energies to form O or O2− at room temperature, superoxide O2(ads) is the dominant adsorbed oxygen species. The mechanism of adsorption can be expressed as given in Eq. (10).

$${O_2}\left( g \right){\rm{ }} + {\rm{ }}{e^ - }{\rm{ }} \to {\rm{ }}{O_2}^ - \left( {ads} \right)$$
(10)

Thus, at ambient conditions, all the subsequent redox reactions are determined by O2(ads). In the presence of reducing gases45:

$$CO\left( g \right){\rm{ }} + {\rm{ }}{O_2}^ - \left( {ads} \right){\rm{ }} \to {\rm{ }}C{O_2}\left( g \right){\rm{ }} + {\rm{ }}{e^ - }$$
(11)
$$C{H_4}\left( g \right){\rm{ }} + {\rm{ }}4{O_2}^ - \left( {ads} \right){\rm{ }} \to {\rm{ }}C{O_2}\left( g \right){\rm{ }} + {\rm{ }}2{H_2}O\left( g \right){\rm{ }} + {\rm{ }}4{e^ - }$$
(12)

Both reactions free electrons, reducing the depletion region of ZnO/SnO2 and producing measurable changes in resistance. Under 52–55% relative humidity (RH), the water molecules partially dissociate on the oxide surface as shown in Eq. (13)46.

$${H_2}O\left( {ads} \right){-}OH\left( {surface} \right) + {H^ + }$$
(13)

These hydroxyl groups are in slight competition with oxygen adsorption, but their influence is minimized due to the stabilizing effect of the PEDOT: PSS overlayer. The PEDOT: PSS/oxide interface provides an additional path for charge transport, thus granting stable and humidity-tolerant sensing behavior.

Mechanism of PEDOT: PSS/NiO p–p heterojunction

In the case of NiO47,48, combined with PEDOT: PSS, its sensing mechanism is dominated by hole modulation across a p-p heterojunction. Thus, oxygen adsorption increases hole concentration in both layers, reducing resistance. The oxygen species are formed as given in Eqs. (14) and (15).

$${O_2}\left( g \right){\rm{ }} + {\rm{ }}2{H^ + }{\rm{ }} \to {\rm{ }}2{O^ - }\left( {ads} \right)$$
(14)
$${O_2}\left( g \right){\rm{ }} + {\rm{ }}{H^ + }{\rm{ }} \to {\rm{ }}{O_2}^ - \left( {ads} \right)$$
(15)
$$C{H_4}{\rm{ }} + {\rm{ }}4{O^ - }{\rm{ }} \to {\rm{ }}C{O_2}{\rm{ }} + {\rm{ }}2{H_2}O{\rm{ }} + {\rm{ }}4{e^ - }$$
(16)

In the presence of reducing gases, electrons are released according to Eq. (16), which recombine with holes (e + H+ → null), decreasing the hole concentration in PEDOT: PSS and NiO. Therefore, the resistance increases. The p–p interface enables fast transport49 of holes that enhances interfacial charge transfer and thus leads to enhanced sensitivity and selectivity toward CO and CH4.

Performance characteristics

Response/recovery time study

Figure 15a presents the dynamic response of SnO2, ZnO, and NiO sensors towards various CO gas concentrations in a range of 2–10 ppm. Each sensing cycle consists of a fast increase in resistance, so-called “Gas in,” when the sensor is exposed to CO, and subsequent decay to baseline, so-called “Gas out,” when CO is removed. All three sensors demonstrate excellent reliability and reversibility of the response-recovery characteristics, which are identical and reproducible. The biggest magnitude of response through all concentrations of the SnO2-based sensor proves its superior surface reactivity toward CO molecules. The sensor based on ZnO shows moderate response intensity, while that of NiO has the lowest amplitude of response due to slower charge transfer and fewer adsorption sites. The presence of oxygen vacancies and efficient electron exchange between CO molecules and adsorbed oxygen species accounts for such a fast reaction and recovery of SnO2, indicating enhanced electron transport at the surface and faster adsorption–desorption kinetics. Compared to ZnO and NiO, this enhanced performance implies that SnO2 provides a more effective surface reaction dynamics approach. When exposed to CH4 gas at ambient temperature, the dynamic response and recovery behavior of gas sensors based on NiO, ZnO, and SnO2 nanostructures are shown in Fig. 15b50. The gas adsorption and desorption cycles are represented by each rise and fall in the curve, respectively. All samples’ resistance quickly rises when exposed to CH4 because the sensor surface’s adsorbed oxygen ions are reduced, which lowers the availability of electrons in the conduction band. The initial resistance level is restored when the gas supply is cut off because oxygen molecules are adsorbed on the surface. SnO2 shows the largest resistance modulation among the materials studied, suggesting improved adsorption capacity and higher surface contact with CH4 molecules. NiO has comparatively less resistance fluctuation than ZnO, which exhibits moderate response behavior. Fast electron interaction between the gas species and the sensor surface is reflected in the resistance’s sharp peak and decrease. In comparison to ZnO (18 s/10 s) and NiO (20 s/12 s), the SnO2-based sensor exhibits a response time of 15 s and a recovery time of 8 s. The outstanding repeatability and stability of the sensing films are confirmed by the steady cycle response.

Fig. 15
Fig. 15The alternative text for this image may have been generated using AI.Fig. 15The alternative text for this image may have been generated using AI.
Full size image

Gas sensors based on NiO, ZnO, and SnO2 nanostructures exhibit dynamic response and recovery behavior when exposed to (a) CO and, (b) CH4 gases at ambient temperature.

Sensitivity

As shown in Fig. 16, the sensitivity of the manufactured metal oxide sensors was assessed for CO gas concentrations between 2 and 10 ppm. Equation (17)51 defines sensitivity as the relative change in resistance following exposure to gas.

$$S=\:\frac{{R}_{g}-{R}_{a}}{{R}_{a}} \times 100$$
(17)

Here, Rg is the resistance of the sensor in the target gas (ppm); the baseline resistance, Ra, measured in air, was about 1200 KΩ for ZnO, 1800 KΩ for NiO, and 450 KΩ for SnO2 at room temperature. The baseline drift during repeated sensing cycles did not exceed ± 2–3% for ZnO, ± 3–4% for NiO, and ± 1–2% for SnO2, demonstrating good resistance stability under ambient conditions. Out of the three materials under investigation, the SnO2-based sensor had the highest sensitivity and a noticeable rise in resistance as the CO concentration increased. This improvement is ascribed to SnO2’s greater quantity of surface-active sites and plentiful oxygen vacancies, which facilitate effective CO molecule adsorption and quicken surface electron exchange reactions. As seen in Table 8, NiO exhibited the least response because of its restricted carrier modulation during gas adsorption and reduced surface reactivity, whereas ZnO displayed intermediate sensitivity. The SnO2 sensor had a sensitivity of about 92.3% at 10 ppm CO, while ZnO and NiO had a sensitivity of 78.6% and 64.7%, respectively. Due in large part to its high surface-to-volume ratio, robust interaction with reducing gases, and improved charge transfer kinetics at the sensing interface, these results validate that the SnO2 nanostructure provides superior gas-sensing behavior. Figure 17 presents a comparative analysis of the gas sensing properties of ZnO and SnO2. The figure includes a response plot measuring the response and recovery times for CO and CH4 gases, and a sensitivity plot showing the corresponding sensitivity percentages for each gas.

Table 8 Response and recovery time of NiO, ZnO, and SnO2 nanostructures toward CO and CH4 Gases.
Fig. 16
Fig. 16The alternative text for this image may have been generated using AI.
Full size image

Sensor response characteristics showing the sensitivity and response time for various gases (CO, CH4) using different metal oxide materials (NiO, ZnO and SnO2).

Fig. 17
Fig. 17The alternative text for this image may have been generated using AI.
Full size image

Gas sensing performance of NiO, ZnO, and SnO2 sensors. (a) Response and recovery times for CO and NO gases. (b) Sensitivity (%) for NO and CO gases.

Influence of humidity on sensor performance

The presence of water molecules that compete with the target gases for adsorption sites is known to influence the surface reaction of MOS-based gas sensors. For this reason, all gas sensing experiments in this work were conducted under controlled ambient humidity conditions from 52 to 55% RH. Within this range, only a very negligible variation in response amplitude and baseline resistance was observed. Overall, the net change in response due to humidity is within ± 3%, ± 4%, and ± 2% for ZnO, NiO, and SnO2, respectively, which indicates the stable operation of the sensors at typical room conditions. The SnO2 device exhibited the highest tolerance against humidity because it possesses a relatively compact surface morphology and presumably displays lower affinity for water adsorption, compared to NiO and ZnO. Finally, this PEDOT: PSS/metal oxide heterojunction stabilizes the surface charge transfer process, which suppresses further humidity interference. These results confirm that the proposed sensors can reliably detect CO and CH4 without significant influences emanating from ambient humidity fluctuations.

Gas sensing performance comparison

Based on the performance metrics summarized in Table 9, the SnO2+CTAB sensor developed in this work demonstrates superior carbon monoxide detection capabilities, operating efficiently at room temperature with a sensitivity of 92.3% for 10 ppm CO. This represents a significant enhancement over previously reported SnO2 nanoparticles, which required an operating temperature of 300 °C to achieve 87% sensitivity. Furthermore, compared to a number of reference materials that operate at high temperatures, including ZnO nanorods at 700 °C, the sensor shows quick reaction and recovery durations of 10 s and 5 s, respectively. Room-temperature functioning, rapid kinetics, and high sensitivity make the SnO2+CTAB composite a very attractive material for low-power, high-performance real-world applications.

Table 9 Comparison of the proposed SnO2 sensor’s gas detection performance with that of existing sensors.

Long-term stability analysis

Long-term operational stability55 is an indispensable prerequisite for the practical application of gas sensors. For this evaluation, the baseline resistance of the fabricated sensors was continuously monitored over a period of 30 days upon repeated exposure to CO and CH4 in the concentration range of 2–20 ppm. Figure 18a (CO sensing) and Fig. 18b (CH4 sensing) illustrate the temporal variations in resistance for all concentrations under test. During the 30-day test period, both sensing environments exhibited only a slight drift. Although the resistance at lower concentrations (2 ppm) deviated little, it remained within a reasonable range; thus, variations at higher concentrations in the range of 5–20 ppm remained consistently small and stable. This suggests that the devices retain excellent repeatability and structural integrity over an extended usage period. The PEDOT: PSS/ SnO2 heterojunction sensor showed the most stable behavior due to its compact surface morphology and stabilized interfacial charge-transfer characteristics. Overall, these results assure good long-term stability for the proposed sensors to ensure reliable and reproducible detection of CO and CH4 gases under realistic operating conditions.

Fig. 18
Fig. 18The alternative text for this image may have been generated using AI.
Full size image

Long-term stability of the fabricated gas sensors over 30 days: (a) Resistance variation of the sensor toward CO at different concentrations (2, 5, 10, 15, and 20 ppm). (b) Resistance variation of the sensor toward CH4 at the same concentration range.

Conclusion

The comprehensive findings of this investigation indicate that the successful production of extremely effective room-temperature gas sensors was made possible by the strategic fusion of heterojunction engineering and CTAB-mediated synthesis. PEDOT: PSS incorporation and consequently the formed p–n heterojunction played a crucial role in enhancing sensitivity and allowed for fast room-temperature detection. The ideal parameters of the SnO2 nanostructures were determined by material characterisation. These included a low internal resistance of 0.45 kΩ, a large surface area of 59.62 m2/g, an adequate band gap of 2.32 eV, and a minimal crystallite size of 2.32 nm. As shown in Table 1, the fabricated PEDOT: PSS/SnO2 heterojunction sensor performed exceptionally well, showing higher sensitivity to both CO (92.3%) and CH4 (90.8%) than the NiO and ZnO-based sensors. Additionally, with the quickest response and recovery times of 10/5 seconds for CO and 15/8 seconds for CH4, the SnO2-based device demonstrated the fastest reaction dynamics. Throughout several testing cycles, the sensor also demonstrated outstanding repeatability and a linear response. These results obviously demonstrate the improvement in sensing capabilities due to a combination of the effects related to the increased surface area, improved charge transport, and nanostructure of the p-n heterojunction. The present work thereby confirms that the method proposed here is a viable and promising approach toward the development of next-generation compact gas sensors for environmental and human health applications.