1 Introduction

The study and analysis of low-dimensional semiconductors are one of the important studies in science and technology throughout the world [1,2,3]. The metal oxide semiconductors show high electrical conductance with high transparency in the visible region which have the applications in solar cell, light-emitting diodes, and other optoelectronic devices [4]. In the metal oxide group semiconductors, tin oxide is one of the notable semiconductors and has a wide band gap with high transparency in the visible region [5]. The research about tin oxide semiconductor is encouraged due to the potential applications such as gas sensors, light-emitting diodes, and solar cell windows [6,7,8,9].Recently, antimony, phosphorus, zinc, strontium, fluorine, nickel, and zirconium-doped SnO2 thin films are prepared and they are characterized [10,11,12,13,14,15,16]. Recently, SnO2 thin films are commonly used as a material for the detection of a wide variety of gases because they are appropriate for physical and chemical aspects and low cost compared to actual materials for the same purpose. At room temperature, the tin oxide sensor is sensitive to certain gases or vapors such as, NH3, NO2, O2, H2, CO, NO, and ethanol [17]. Pure SnO2 acquires some disadvantages such as high operating temperature, low selectivity, and low sensitivity, which must be taken into account before SnO2-based equipment is marketed [18]. Normally, appropriate catalysts, noble metals, and transition metals are incorporated into the SnO2 sensors to boost their sensing response and selectivity.[19]. In this work, Neodymium-doped SnO2 films are prepared by the nebulizer spray pyrolysis method. This method is cost-effective and doesn't require a vacuum. The preparation conditions such as the flow rate and temperature influence the morphology and size of the grains in the prepared films [20].

The prepared films are characterized by energy dispersive X-ray analysis (EDXA) to confirm the chemical compositional nature of the material. The Raman spectroscopy, photoluminescence, and UV–Vis–NIR spectroscopy techniques are employed to study the optical properties of the prepared films. The structural properties of the films are found from the X-ray diffraction technique. The procedure to prepare the undoped and Nd-doped tin oxide films is given in Sect. 2. The results and the corresponding discussion of the characterization techniques are given in Sect. 3 followed by the conclusion.

2 Experimental procedure

The nebulizer spray pyrolysis method is employed to prepare the SnO2 films without and with doping. Tin (IV) chloride pentahydrate [SnCl4.5H2O], Neodymium acetate monohydrate [Nd (CH3COO)2⋅H2O], and methanol [CH3OH] are used to prepare the spray solutions.

Undoped and Nd-doped SnO2 films are deposited onto glass substrates. For this deposition, 0.1 M precursor solution is prepared by dissolving tin (IV) chloride pentahydrate in methanol. For Nd doping, Neodymium acetate monohydrate is dissolved in the above solution with different concentrations (0, 1, 3 and 5%). Both precursors are easily soluble in the methanol. It is a suitable solvent for nebulizer spray technique because the alcohol solvent can be easily evaporated, so it can reduce the deposition time. Few drops of concentrated hydrochloric acid are added for the complete dissolution of precursors. The final solution is stirred for about 15 min at room temperature to yield a transparent and standardized solution. Before spraying the solution, the glass substrate is cleaned and kept onto the heated plate maintained at constant temperature of 400 °C using a PID temperature controller. A 10 ml precursor solution is used to spray on the substrate at a time. While spraying, the mist formed from the precursor solution is forced to fall on the hot substrate. The spray nozzle is moved slowly over the substrate to spray solution uniformly and get a smooth film. The main parameters maintained during the nebulized spray pyrolysis technique are listed: substrate temperature of 400 °C; substrate to nozzle distance of 25 mm; and carrier gas pressure of 1.0 kg/cm2. The prepared films are characterized to study the morphological, optical, micro-structural, and gas sensing properties.

3 Result and discussion

3.1 Thickness, EDXA, and SEM analysis

The thickness of the film is measured using a profiler technique. The undoped film has a thickness of 320 nm, whereas 5% Nd-doped SnO2 film has 410 nm. As the doping concentration increases the film thickness also increases. The chemical compositional analysis is done using the EDXA technique. The EDXA spectrum of the films is presented in Fig. 1. The purity of the sample and the presence of the dopant are confirmed in the EDXA spectrum.

Fig.1
figure 1

EDXA Spectrum of a undoped and b 5% Nd-doped SnO2 films

The high-resolution SEM images of undoped and 5% Nd-doped tin oxide are shown in Fig. 2. The presence of Sn and O in the undoped films and the dopant Nd in the Nd-doped tin oxide films are shown using different colors in elemental mapping. A small area analysis reveals that the number of green dots is less than the blue and red conforming to the doping level. The image analysis of SEM reveals that the grains are spherical and have got agglomerated due to the thermal energy available on formation of undoped and Nd-doped tin oxide surfaces. The Nd-doped tin oxide films have revealed a smoothened surface feature compared to the undoped.

Fig. 2
figure 2

a SEM and elemental mapping image for undoped tin oxide film b SEM and elemental mapping image for 5% Nd-doped tin oxide film

3.2 Raman studies

The optical measurement by Raman spectroscopy is carried out further to determine the characteristics of SnO2 and Nd-doped SnO2films. The Raman spectra of SnO2 and Nd-doped SnO2films are shown in Fig. 3.Rutile SnO2 belongs to the point group D4h with two SnO2 molecules per unit cell and 15 optical phonons corresponding to this symmetry as given by

$$\Gamma = {\text{A}}_{{{\text{1g}}}} + {\text{A}}_{{{\text{2g}}}} + {\text{A}}_{{{\text{2u}}}} + {\text{B}}_{{{\text{1g}}}} + {\text{B}}_{{{\text{2g}}}} + {\text{2B}}_{{{\text{1u}}}} + {\text{E}}_{{\text{g}}} + {\text{3E}}_{{\text{u}}}$$
Fig. 3
figure 3

Raman Spectrum

where A1g, B1g, B2g, and Eg are Raman active. The spectrum of SnO2shows fundamental Raman-active peaks corresponding to the rutile structure of SnO2 at 473, 632, and 773 cm−1.These Raman shifts are consistent with the Eg, A1g, and B2g vibration modes, respectively. The A1g and B2gmodes are non-degenerate and might be related to the expansion and contraction of the vibrating mode of Sn–O bonds, whereas the doubly degenerate Eg mode may be related to the vibration of oxygen in the oxygen plane. The A1g and B2g modes vibrate in the plane perpendicular to the c-axis, whereas the Eg mode vibrates in the direction of the c-axis. In addition to these peaks, the observation of new peaks can be explained based on the quantum confinement effect. In thin films, the surface properties are sensitive not only to the grain size and their distributions but also to the oxygen vacancies and local disorder. So there may be a possibility of the appearance of new modes in the Raman spectra [21,22,23].

3.3 Photoluminescence and UV–Vis–NIR spectroscopy

Figure 4 shows the room temperature photoluminescence spectra for the prepared films recorded in the range of 350–600 nm using 380 nm excitation wavelengths. The undoped films have high intensity than the doped films. The emission spectrum consists of 368, 406, and 471 nm emission peaks. The peak around 370 nm (3.36 eV) is due to the direct band gap transition. The peak at 406 nm (3.05 eV) may be due to the oxygen vacancies in the SnO2 lattices. Similarly, the peak at 471 nm (2.63 eV) appeared due to the presence of singly charged oxygen vacancies (Vo+) in the film [24, 25]. The doping of Nd in the Sn lattice highly influenced the PL spectrum in terms of intensity. The doping concentration reduces the PL intensity and it is due to quenching. The transmittance spectra of the films are recorded from 300 to 1200 nm and are shown in Fig. 5. The undoped films have high transmittance than doped films. As the wavelength increases, the transmittance of the films also increases and reaches saturation. The undoped film reaches the saturation first than doped films in terms of wavelength. The doping reduces the transmittance of the films. Similar results are reported in doped tin oxide films [16].The variations in transmission of the films are mainly due to interference phenomena.

Fig.4
figure 4

PL spectrum

Fig. 5
figure 5

Transmittance spectrum

The band gap of the material is found from the Tauc’s plot by plotting \({\left(\alpha h\nu \right)}^{n}\) against \(h\nu\). The Tauc’s plot for undoped and doped films is shown in Fig. 6. Since the SnO2 is a direct band gap material, the value of the 'n' is chosen as ½ [26]. The extrapolation of the straight line to the \(h\nu\) axis gives the band gap of the material. For the undoped film, the band gap is higher than the bulk value of 3.6 eV. This similar result is obtained by Deepa et al. [27]. The calculated band gap ranges from 3.64 to 3.35 eV when the doping concentration changes from 0 to 5%, respectively. The undoped films have a high band gap and the doping reduces the band gap. The charge carrier concentration is found from \({E}_{g}^{bulk}-{E}_{g }^{film}= \frac{{h}^{2}}{8{m}^{*}}{\left(\frac{3}{\pi }\right)}^{2/3}{{n}_{e}}^{2/3}\), where \({n}_{e}\) is the electron concentration, \({E}_{g }^{film}\) is the band gap of the prepared film, and \({E}_{g}^{bulk}\) is the bulk band gap [28]. The electron concentration increases as the doping concentration of Nd increases. Hence it is clear that the films become more n-type as the doping of Nd increases. Moreover, when the doping concentration increases from 0 to 5%, the electron concentration increases by more than ten times. The refractive index of the films is calculated from the expression [28],

Fig.6
figure 6

Tauc plot

$$\frac{{n}^{2}-1}{{n}^{2}+2}=1-\sqrt{\frac{{E}_{g}}{20}}$$

Here, n is the refractive index of the material and \({E}_{g}\) is the band gap of the prepared films (in eV). The undoped film has a refractive index of 2.242 and the doping of Nd causes the high refractive index. The calculated band gap, electron concentration, and refractive index are tabulated in Table 1.

Table 1 Band gap, electron concentration, and refractive index of the films

3.4 X-ray diffraction studies

The Fig. 7 shows the XRD pattern for undoped and doped tin oxide films. All the films show the polycrystalline rutile structure [29]. The recorded XRD pattern is in coincidence with the standard XRD pattern (JCPDS:41-1445) [29].The effective doping in a tin lattice is confirmed based on the following reasons: (i) the absence of the secondary peaks due to Nd or NdO2 and (ii) the shift of the Miller planes of the doped films as compared with undoped SnO2 films.

Fig. 7
figure 7

XRD Pattern

As the doping concentration of Nd increases, the intensity of the film also increases. Moreover, the relative intensity between the planes (110) and (101) as well as (101) and (200) depend on the concentration of doping. The grain size of the prepared films is found using Debye-Scherer’s formula as [26]

$$D=k\lambda /\beta \mathrm{cos}\theta$$

where k is chosen as 0.94, λ is the wavelength of Cu-kα line, β is the full width at half maximum and θ is the Bragg's angle. The dislocation density is found from \(\delta =\frac{1}{{D}^{2}}\) [26] and the strain is found from \(\epsilon =\frac{\beta \mathrm{cot}\theta }{4}\) [30]. The grain size of the undoped film is 16 nm, whereas 5% doped film has a grain size of 33 nm. This is due to the direct fact that the atomic radius of Nd is greater than the atomic radius of Sn. The grain size changes non-linearly due to doping concentration. The dislocation density and the strain of the material decrease as the doping concentration of Nd increases. The thickness and the grain size of the thin films are the key factors in the properties of thin films. The results show that the doping of Nd changes the film thickness and the grain size; hence one can tune the properties of SnO2 thin films simply by effective doping.The lattice constants for the tetragonal phase structure is found from the standard equations as given in [29]. They are, respectively, given as

$${d}^{-2}=\frac{{h}^{2}+{k}^{2}}{{a}^{2}}+\frac{{l}^{2}}{{c}^{2}}$$
$$V={a}^{2}c$$

The calculated lattice constants are in coincidence with the standard results and the volume of the unit cell increases due to doping of Nd. All the calculated values are presented in Table 2. Since from our best of knowledge no results are found in the literature to study the role of Nd concentration in SnO2 thin films, the comparison of our results is not possible.

Table 2 Structural properties

3.5 Ammonia gas sensor analyses

In general, when certain gas molecules are adsorbed, the electrical properties of the semiconductor metal oxides will change. When the material is exposed to an NH3 environment, metal oxide sensor properties can be detected as the change in electrical resistance. The keithley electrometer and computer connected homemade sensor setup is shown in Fig. 8. The silver paste is applied for the study of NH3 vapor sensing characteristics of prepared films in order to create electrical contacts on top of the films.

Fig. 8
figure 8

Gas sensor setup

A particular volume of liquid ammonia is injected with chromatographic syringe into the 5 L gas sensing chamber. After hitting the electric meter study level, the target gas is allowed into the chamber. Then an unexpected change in resistance to baseline suggesting system sensing properties is observed. The differences in resistance are measured continuously. The basic ammonia gas sensing characteristics of the prepared films are graphically shown in Fig. 9a–c. When the prepared films are exposed to ammonia, it converts into NO and then it dissociates to nitrogen and oxygen. The oxygen gets electrons to form the film that causes the change in the resistance. From the following relation, the sensitivity (S%) of the fabricated sensors is calculated [31].

$$Sensitivity = \left\{ {\frac{{R_{{\text{a}}} - R_{{\text{g}}} }}{{R_{{\text{a}}} }}} \right\} \times 100\%$$
Fig. 9
figure 9

a Response time (Tres) and recovery time (Trec) of SnO2:Nd thin films( NH3 gas of 25 ppm concentration). b Graphical representation of response time (Tres) and recovery time (Trec) of SnO2:Nd thin film ( NH3 gas of 25 ppm concentration). c Gas response in terms of the resistance of SnO2:Nd(5%) thin film. d Stability and reproducibility of 5% Nd-doped SnO2 film for 25 ppm NH3

where Ra and Rg are the resistance of the sensor measured in normal air and test gas atmosphere, respectively. The response time (Tres) is the time taken for the sensor to achieve 90% of the total resistance (adsorbed gas time), and the time taken for the sensor to re-achieve 90% of the resistance (desorbed gas time) is the recovery time (Trec) [32, 33]. The observed response and recovery time of the different doping concentration of Nd-doped films for 25 ppm ammonia is given in Fig. 9a. The observed response, recovery time, and sensitivity for the different doping concentration of Nd is given in Table 3. The response and recovery time decreases with the increase in doping Nd concentration as shown in Fig. 9b. In comparison with other films, the 5% Nd-doped SnO2 film display the fast quick response (27 s) and fast recovery (6 s) times.

Table 3 Response time, recovery time, and sensitivity of 5% Nd-doped SnO2 film for 25 ppm NH3

Figure 9c depicts SnO2:Nd (5%) thin film response and recovery graph with different ammonia concentrations, such as 25–125 ppm in the step of 25 ppm. It is observed that the resistance gradually increases with ammonia concentration. Hence one can control the gas sensing mechanism simply by the doping of Nd in Sn lattices in SnO2 films. From the best of our knowledge, a nebulizer spraying technique does not provide a report on the Nd-doped SnO2 vapor sensor at room temperature. The uniqueness of this work should, therefore, be highlighted and parameters should compared with SnO2-based sensors obtained. Yude Wang et al. [34]. reported an ammonia sensor at 100 ppm that showed a response time at ~ 3.3 min and recovery time at ~ 3 min at 79 °C for the SnO2/Sb nanostructure. Deshpande et al. [35] synthesized enhancement of 300–500 ppm NH3 gas sensor based on SnO2/PANI by solution route technique. They showed that tin oxide-intercalated polyaniline exhibited quick response/recovery timings of ~ 12–15 s/80 s for operating temperature of 300 °C. Sanju Rani et al. [36] investigated the influence of Fe doping on NH3 sensing by SnO2 thin film at the operating temperature of 200 °C. It displayed 46% sensitivity towards 1000 ppm gas concentration. In this case, we have achieved response (27 s), recovery time (6 s), and sensitivity of 68.2% for SnO2: Nd (5%) at room temperature with ammonia of 25 ppm.

3.6 Stability and reproducibility

The quality of the system is controlled by stability and reproducibility. After 45 days, a film has been examined for its efficiency. Particularly, in environmental laboratory conditions, the film is stored. Figure 9d demonstrates the reproducibility of 5% Nd-doped SnO2 film, which is stored in 25 ppm of ammonia as deposited film and after 45 days. From Fig. 9d, it is evident that the fresh film electrical resistance and the 45 days aged film remains nearly equal (3.72 × 107 for fresh film and 3.09 × 107 for aged one). The NH3 molecule interacts as before with Nd-doped SnO2, and thus, the film properties are not influenced by aging. The consistency and existence of the Nd-doped SnO2 film in open atmosphere are exceptional from this observation. We conclude from this analysis that the sensing response of the SnO2 film to ammonia is nearly stable and those films can be further studied with regard to their potential use in the sensing of various gases and for the development of devices.

4 Conclusion

Spray pyrolysis method is employed to prepare the undoped and doped SnO2 films. The thickness of the films, morphological, optical, structural, and gas sensing properties depend on the doping concentration of Nd. The doping is confirmed by the color contract SEM image and the shifting if the miller plane is in the XRD pattern. The doping reduces the PL intensity and the transmittance of the films. The red-shifted band gap is observed due to doping from the Tauc’s plot. Ammonia gas is sensed using these films and its response is presented. This work is extended to study other gases such as H2O2 and O3.