1 Introduction

Recently, fast advances in science and technology have resulted in significant changes in our day-to-day lives. During these developments, myriad environmental problems are responsible for global concern. Particularly, environmental pollution affects not only ecosystem but also causes tremendous convulsions in living beings. Respiratory issues like asthma, suffocation and the cardiac problems in humans are increasing due to air pollution [1]. Hence, it has become mandatory to notice and control the hazardous gases in the environment. Last few years ago, various gas sensors are being fabricated and employed in diverse field of applications such as environmental analysis, breath sensors, automotive industry, indoor and outdoor air quality controls etc. However, there is a tremendous need for monitoring toxic gases including CO, CO2, NO, NO2, SO2, SO3 and NH3. Among the innumerable gases, ammonia gas is commonly released from the various industries into the environment considered highly toxic, corrosive and causes danger to human life [2]. In addition, dairy and ice cream plants, wineries and breweries, petrochemical facilities, fruit juice, vegetable juice and soft drink processing facilities use huge amounts of ammonia as coolant. The higher concentrations of ammonia breathing can be hazardous to the lungs leading to abnormalities related to respiration. Inhalation of ammonia gas for longer periods of time was one of the causes of people becoming more receptive to diseases like COVID-19 [3]. According to the survey of the Occupational Safety and Health Administration (OSHA), United States, the tolerable quantity of ammonia gas exposure edge to the humankind is on an average of 25 ppm for 8 h duration of a working day and 35 ppm for some time of 15 min. [4]. Hence, given this, there is an urge to develop efficient NH3 gas sensors, which can perform at minimum working temperature and can sense even low concentrations.

Recently, several methods are used to fabricate gas sensors for sensing ammonia which include conducting polymers [5], metal–organic frameworks [6], organic conjugated polymer [7], two-dimensional nanostructured materials [8] and metal oxide semiconductors [9]. Among the advanced sensing technologies, metal oxide semiconductors (such as CuO, ZnO, CoO, SnO2, WO3 etc.) system based sensors have been demonstrated good sensitivity, stability and selectivity to a particular gas [10]. Metal oxide semiconductors are readily available at low cost which work on the concept of variation in resistance in the presence of the analyte gases [9]. Metal oxide semiconductors due to their excellent property of gas detection are used to trace the gases like O2, N2O, Cl2, NH3, H2, CO, CH4, etc. [11]. Particularly, the n-type semiconducting metal oxides also have grabbed the attention of the researchers owing to their high selectivity, stability, and sensitivity towards the various oxidizing and reducing gases. The 2D transition metal dichalcogenides like WS2, MoS2, WS2, MoSe2, etc. are also employed for room temperature sensing, improved selectivity, and performance. The major hindrance of these TMD’s are slow recovery, the performance of which can be uplifted by UV illumination/ thermal assistance yet an issue of power consumption arises [12]. Hence according to the review, the metal oxides/graphene-reduced metal oxides are used in the gas sensors in a wide range due to their high selectivity, quicker response, and recovery [13].

ZnO is one of the most important n-type metal oxide semiconductors with a relatively wide band gap and excellent chemical stability and has been investigated for its chemiresititve gas sensing [14]. In addition to these, it is also possesses other impressive properties likewise high thermal and chemical stability, catalytic activity, piezo-electric behavior, larger optical transparency in the visible region, low price, non-toxicity [15]. The development of ZnO thin films possessing the various surface morphologies like nanoplates, nanoflowers, nanotubes, nanorods, nanowires and so on has greatly expanded the specific surface area making which is suitable for widespread applications in different fields [16]. Nanostructures such as nanorods or nanowires have been proven to be better for gas sensing rather than nanoparticles, as they can boost the substantiality of gas sensing [17]. Nevertheless, the semiconductor gas sensors usually work at high temperatures leading to high power consumption indirectly affecting their long-term stability and sensitivity [18]. This inflated temperature may also cause damage to the microstructure of the surface of the sensing material hence hampering its working capability and stability [4]. To recover this issue and enhance the gas sensitivity, the base material is doped with noble metals such as Au, Ag, pt, etc. and transition metals like Co, Fe, Mn, Cu and Ni [19]. It has also been reported that the transition metal dopants like Mn, Al and so on are the rapid diffusing impurities in the conglomerated semiconductors [20].

M. Kumar and colleagues reported that the pure and Al-doped ZnO nanostructure films were highly selective and responsive towards CO gas due to surface defects of the sensors [21]. K. Ravichandran et.al. studied the ZnO nanostructures were found to have highly appreciable for gas sensing activity [22]. Penga and group investigated the response of Mn-doped ZnO nanostructures towards the relative humidity at room temperature and earned better outcomes [23]. K. K. Khun et. al., achieved better results for antimony-doped SnO2 thick films for detecting low concentrations of ammonia at room temperature [24]. Yuzhen Mao et.al. studied the acetone sensing characteristics of Mn-doped ZnO samples and found satisfactory values of recovery and response time at an operating temperature of 340 ℃ [25]. Ahmed et.al. investigated the Mn doping to ZnO nanorods to study the O2 sensing quality and obtained appreciable results at room temperature [26]. Henceforth, after going through the highlights of the above-mentioned studies, it is realized that ZnO samples doped with other metals and also doped with Mn are capable of sensing various gases like O2, acetone, ethanol, humidity sensing, CO, and so on. As comparatively there is less work done on ammonia sensing characteristics and hence we decided to work on Mn-doped ZnO nanostructures.

At present, ZnO thin films are synthesized using numerous methods such as laser ablation, vapor deposition, sputtering, spray pyrolysis, CVD, sol–gel, CBD, etc. [27]. Of these, the spray pyrolysis method is a very accessible, inexpensive, secure, and capable of stoichiometry control and non-vacuum glazing method for synthesizing translucent and clear conducting oxides correlated with other methods [28].

Herein, we focus our attention on the development of pure and Mn doped ZnO gas sensors via spray pyrolysis. As per our literature analysis, no reports are available on sensing properties of Mn-doped ZnO towards ammonia for low concentration at room temperature. The main aim of this proposed work is to develop ZnO based thin films and to investigate their structural, optical, morphological, micro elemental, absorption, band gap and ammonia gas sensing performance at room temperature. Interestingly, the Mn-doped ZnO based sensors were more selective to ammonia and exhibiting high selectivity at room temperature.

2 Experimental section

2.1 Materials and methods

The preparation of high purity ZnO and Mn doped ZnO thin films were developed using commercial reagents. Zinc acetate dehydrate [Zn(CH3COO)2.2H2O, 98%] as a precursor for zinc, manganese (II) acetate tetrahydrate [(CH3COO)2Mn.4H2O, 99%] as a dopant precursor were purchased from SIGMA-ALDRICH, distilled water used as oxidant.

2.2 Deposition of pure and Mn-doped ZnO thin films

Spray pyrolysis is a technique (a shown in Fig. 1(a)) based on droplet generation phenomenon with simple apparatus having striking properties like cost effectivity, simplicity, continuous operation, deposition on broad surfaces and higher rates of deposition. It is a flexible deposition technique for synthesizing single and multilayered films, dense or porous, ceramic coatings and so on. Deposition is undergone under the controlled parameters like substrate temperature, nozzle to substrate distance, pressure, spray rate, concentration of precursor solution etc,.

Fig. 1
figure 1

Schematic diagram of spray pyrolysis setup; Gas sensing apparatus arrangement

The foregoer materials zinc acetate dehydrate and manganese II acetate tetrahydrate were standardized according to the stoichiometric ratios to synthesize the pristine and Mn doped ZnO thin films. Zinc acetate was dissolved in a proper amount of double distilled water for making it a 0.1 M solution. The solution was stirred homogenously at room temperature for 30 min, assigning a magnetic stirrer. Mn doping concentrations were followed to be 0, 2% and 4% respectively. Glass substrates were chosen for the deposition purpose. Before deposition the glass substrates were cleaned in the chromic acid and double distilled water and finally with acetone to remove all the contaminants. Initially, the air compressor of the spray pyrolysis unit was filled in order to avoid the pressure instability during the deposition. The sterilized glass substrates were pre-heated at a temperature 400℃ by placing them on the metallic hot plate provided with the temperature controller. The solutions prepared were sprayed on the glass substrates with the help of atomizer at a spray rate of 2 ml/min. and maintaining nozzle to substrate distance at 20 cm and pressure at 30 psi. In like manner, Mn doped ZnO thin films were also deposited with changing Mn contents. The schematic processor of spray pyrolysis as shown in Fig. 1(a).

2.3 Characterization techniques

X-ray diffraction studies of the samples were conducted using RigakuUltima IV multifunctional X-Ray diffractometer (XRD) equipped with CuKα1 source with wavelength 1.5406 Å. The data range was obtained between 10◦ to 90◦. Field emission scanning electron microscopy (FESEM) was performed by using NovaNanoSEM 308 for all the thin films. The energy dispersive X-ray spectroscopy (EDAX) was carried out to study the composition of the synthesized samples using Pegasus EDS-EBSD, JASCO-7310. Optical characterization of the deposited thin film samples was done using UV–Visible Spectrophotometer. The gas sensing performance of the deposited samples was studied using Keithley electrometer (6517B) for various ammonia concentrations.

2.4 Fabrication of gas sensors

Figure 1(b) shows the gas sensing arrangement for measuring sensing property of the gas sensor. It comprises of an air tight (impenetrable) gas chamber specifically designed with inlet and outlet ports for letting the gas vapors inside and outside. This is mutually attached to a computer system and a high resistance Keithley source electrometer (6517B). The films at their edges of the substrate are scrapped off up to 2 mm and silver paste subsequently dispersed in ethyl alcohol is applied to establish electrical contacts upon the samples. These films are sintered at 100℃ for 2 h in muffle furnace. Then the sensor to be tested for ammonia gas sensing is carefully placed inside the airtight chamber and then applied with a 4 V constant power supply across the samples to measure the fluctuations in resistance. The air-tight chamber also dwells with a cylindrical flask used to fill the liquid gases to be tested. The vapors of these gases are produced by heating the flask at sufficient temperatures. Firstly, the chamber is kept open to measure the atmospheric air resistance so that a substantial baseline is attained. As soon as the substantial state is obtained, the heater is put on to produce the vapors of the liquid testing gases (here liquid ammonia is used) inside the cylindrical flask and the air-tight chamber is closed. The variation in the resistance concerning the substantial line was detected as a response to the testing gas vapors. These resistance fluctuations are noted from time to time.

The gas sensing measurements were performed in a 1 L stainless-steel chamber connected with a two-terminal source meter (Agilent B2902A) using a static volumetric method. The calculated volume of the target gas liquid was injected using the following formula: Gas concentration (C) in parts per million (ppm) was determined using the static liquid gas distribution method. This calculation followed the formula:

$$C\;\left(ppm\right)=\frac{22.4\times V1\times D\times\varphi}{V2\times M}$$
(1)

Here D represents density (g/mL), φ is the required gas volume fraction, V1 and V2 represent the volume of the liquid and the chamber volume is measured in litres (L). M corresponds to the molecular weight of the liquid, expressed in grams per mole (g/mol) [29]. The sensitivity towards ammonia gas is evaluated using the relation [30]:

$$S\left(\%\right)=\frac{Ra-Rg}{Ra}\times 100$$
(2)

where Ra and Rg are the resistances of the samples in the presence of air and analyte gas respectively.

3 Results and discussion

3.1 Structural studies

The phases and crystal structure of the developed films were investigated by XRD analysis. Figure 2(a) shows the XRD patterns for pristine ZnO and Mn-doped ZnO thin films. The observed diffraction peaks correspond to (100), (002), (101), (102), (110), (103), (112) for prepared films. The diffraction peaks of pure ZnO film were well indexed with hexagonal (wurtzite) phase of ZnO, indicating the successful formation of ZnO (JCPDS data card number 79–0206). The intensified diffraction peaks illustrate that the thin film samples have been highly crystalline in nature. No any additional Mn phases were seen in Fig. 2(a) indicating the purity and the complex incorporation of the dopants into the ZnO samples which was also noted by Lekouiet. al. [31]. Ahmad et al. have reported to have additional impurity peaks are identified in the X-ray diffractograms due to the decomposition of MnO2 into its lower oxides at elevated temperatures [32]. The dominant orientation being along (002) plane hints that the crystallites elected their preferred orientation along it. The heightened (101) peaks was also reported by Elavarasan and co-workers [33]. The similar results were also reported by Kicir and colleagues but along with this the (103) peak intensity which was increased initially and then decreased with Mn doping [34]. In addition, Fig. 2(b) shows the shift of (100), (002) and (101) peaks of Mn doped ZnO towards the lower angle side as compared to the pristine ZnO peaks with doping Mn content. In addition, significant changes in XRD peaks intensity were observed for Mn doped samples. From Fig. 2(b), it is also clear that the diffracted peaks broadening decreases with increasing Mn concentration. It indicates that high crystallinity with polycrystalline nature for doped films. This deviation of the peaks is illustrated in the following fashion: the concentration of the Mn impurity decreases from the surface to the core of the ZnO nanoplates and also towards the roots of the dispersed specimen [35]. Again, being the ionic radius of Mn2+ slightly greater than the Zn2+, makes this shift towards the lower angle side. This peak shift mostly stresses on successful inclusion and uniform distribution of Mn2+ ions into the ZnO lattice [36]. The crystallite size of the prepared thin films was calculated by applying the Debye–Scherrer’s formula which is given by [33]:

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

where k is the scherrer constant whose value is 0.9, λ is the wavelength of the CuKα source and is 1.5406 Å, full-width at half maxima (FWHM) is given byβ, θ is the Bragg’s angle. The average crystallite size also enlarged from 13.13 nm to 18.24 nm for pure ZnO to 4% Mn-doped ZnO films (as tabulated in Table 1). The enhancement in average crystalline size owing to smaller grain growth of Mn doped ZnO as compared to pure ZnO films. The same type enhanced crystallite has been reported by M. Harque and co-authors in their study on Mn doped ZnO nanopowder for ascertaining myocardial infarction through an electrochemical detection of myoglobin [37]

Fig. 2
figure 2

Full angle range of XRD patterns and high-resolution of (100) (002) (101) peak of the pure, 2 at%, and 4 at% Mn-doped ZnO samples

Table 1 XRD structural parameters of pure and Mn doped ZnO thin films

.

Lattice parameters were calculated using the following equation [38]:

$$\frac{1}{{d}^{2}}=\frac{4({h}^{2}+{k}^{2}+{l}^{2})}{3{a}^{2}}+ \frac{{l}^{2}}{{c}^{2}}$$
(4)

where dhkl represents interplanar spacing, h, k and l are the miller indices. The lattice parameters a and c were observed to be increases with Mn content as tabulated in Table 1. This is pertaining to the ionic radius of Zn2+ (0.74 Å) being smaller than that of Mn2+ (0.80 Å).This can be elucidated by vegard’s law according to which the discrepancy in the lattice parameters of the intrinsic and contaminated samples is due to their variation in the ionic radii of their respective ions [39]. Volume of the unit cell is determined using the equation [40]:

$$V=\frac{\surd 3}{2}{a}^{2}c$$
(5)

The volume of the unit cell of the pristine ZnO film as a function of Mn content as shown in Table 1. Analogous outcomes were by contemplated by Stefan et. al. [41]. This was attributed to the reinstatement of tetragonally coordinated larger Mn2+ ions (0.80 Å) in place of smaller Zn2+ ions (0.74 Å) which is associated with the induction of strains into the ZnO host matrix [41].

Further, the bond length of all the samples is calculated using the equation [38]:

$$L=\sqrt{\frac{{a}^{3}}{3}+(\frac{1}{2}-u{)}^{2}}$$
(6)

where u is known as the distortion parameter which is given by

$$u=\frac{{a}^{2}}{3{c}^{2}}+\frac{1}{4}$$
(7)

The bond length of Mn doped ZnO is found to be larger than that of pure ZnO which is shown in Table 1. Strain is generally created due to the disproportion in the substrate and the film. The strain (ε) and stress(σ) for the synthesized products can be found out by applying [39]:

$$\upvarepsilon =\left({\text{c}}_{\text{film}}-{\text{c}}_{\text{o}}\right)/{\text{c}}_{\text{o}}$$
(8)
$$\upsigma =-233\left[\left({\text{c}}_{\text{film}}-{\text{c}}_{0}\right)/{\text{c}}_{0}\right]$$
(9)

where cfilm represents the calculated lattice parameter, co represents unstrained parameter whose value is given by co = 5.204 Å. The negative values of strain indicate the compressive strain is raised due to doping and further doping led to the tensile strain. The values of strain are found to decrease with increasing Mn doping.

The length of the dislocation lines per unit volume of the crystal is the dislocation density (δ) which can be calculated by using equations [42]:

$${\varvec{\delta}}=\frac{\frac{1}{{D}^{2}}\text{lines}}{{\text{m}}^{2}}$$
(10)

The dislocation density shrinked with the enhanced manganese content [43].

3.2 Optical analysis

Optical analysis of pure and Mn-doped ZnO films was carried out using UV–Vis spectrophotometer of model JASCO-7310 within the wavelength range of 350–800 nm as shown in Fig. 3. As the Mn doping content increases(as shown in Fig. 3(a)), absorption edge was found to be shifted towards the higher wavelength side which can be matched up with the variation of the optical bandgap which has also been proclaimed in earlier literature [44]. This improved absorbance in the visible region is interpreted as the enhancement of crystal defects present in the forbidden bandgap [45]. The relation between the absorption coefficient (α) and energy of the photon (hν) is given by [46]:

Fig. 3
figure 3

a UV–VIS Absorbance spectra of Undoped and Mn-doped ZnO thin films and bTauc’s plot of the undoped and Mn-doped ZnO samples

$$\alpha h\nu =A({h\nu -Eg)}^{1/2}$$
(11)

Figure 3(b). shows the plot of (αhν)2 vs hν, from where the optical bandgap is evaluated for all the films. The optical bandgap values were observed to be decreased with increasing doping concentration of Mn as plotted in Fig. 4. The related work has been carried out by Strelchuk et al., and explained that the reduction in the bandgap as an account of exchange interactions between s and p electrons of ZnO matrix and d electrons of the dopant, which is explained using second-order perturbation theory [47]. Many other researchers also attributed this to the existence of crystal defects, like oxygen vacancies [48]. As noticed from the XRD results, the crystallite size is enhanced with the doping of Mn content. Here, we can observe a reverse relationship between the optical band gap and the crystallite size, which is adequate to conclude that the fabricated samples show the quantum confinement effect [49]. By looking at the above highlights, it is clear that the material is suitable for optoelectronic device applications.

Fig. 4
figure 4

Band gap variation with doping concentration

3.3 Morphological analysis

Figure 5 (a-c) shows the FESEM micrograph images of pure ZnO, Mn doped ZnO thin film samples. FESEM micrograph of ZnO film showed the worm like morphology with fragmentary agglomerations as shown in Fig. 5(a). With enhanced Mn content, agglomerations were contemplated to be diminished leading to the increased worm size. 4% Mn doped ZnO sample attained morphology resembling nanoplates which were grown erect to the surface of the substrate. This was accompanied with prominent voids. The transformation of surface morphology from worm-like to vertical nanoplates is motivated mainly due to the successful incorporation of Mn into the ZnO lattice. The sharpened and elongated nanoplates depicts the enhanced crystallanity of the samples which can be correlated with the intensified (101) peak with Mn incorporation into the ZnO matrix which is shown in Fig. 2(a). The voids created in between the nanosheets are proved to be advantageous for the sensitivity of gases which were analogously reported by N.Verma et. al., in their study of Sn doped ZnO nanostructures for sensor applications [50]. The morphological findings suggested that the voids are helpful for efficient gas sensing. The homologous morphologies were ascertained by H. Aledaghi et. al., in their research on the investigation of effects of growth parameters of ZnO nanostructures [51]. The synthesized vertical nanoplates being 1D ZnO nanostructures were proved to be highly profitable for gas sensor applications as their resistances are adjustable by the adsorbed gas species types onto their surfaces [52].

Fig. 5
figure 5

FESEM images of (a) Pure ZnO; (b)2% Mn doped ZnO and (c)4% Mn doped ZnO thin film

3.4 Compositional analysis

Figure 6 (a-c) reveals the elemental composition studies of the pure and Mn doped ZnO nanoplates undertaken through the Energy dispersive X-ray analysis. The intrinsic and Mn doped ZnO nanoplates are possessed with zinc, manganese and oxygen. The presence of Mn peak in Fig. 6(b) and (c) illustrates the appreciable addition of Mn into the ZnO matrix. Also EDAX spectrum shows no extra peaks indicating the purity of the synthesized Mn doped ZnO nanoplates.

Fig. 6
figure 6

EDAX Spectra of a) Pure ZnO b)2% Mn doped ZnO and c) 4% Mn doped ZnO thin films

3.5 Gas sensing study

Gas sensing performance of the prepared pure and Mn doped ZnO films were carried out for different gases at room temperature. As shown in Fig. 7, the responses of the as developed films sensors to acetone, ethanol, xylene, ammonia and formaldehyde gases. It is confirmed a good selectivity towards to ammonia gas for developed films. If we compare the above results, we obtained a good sensitivity to ammonia gas over the other selected testing gases there fixed for 15 ppm level. From the above results, it emphasize that the prepared films have super sensitive and selective for ammonia gas sensing. Hence, we have chosen the ammonia gas for further studies.

Fig. 7
figure 7

Selectivity of pure, 2% and 4% Mn-doped ZnO thin films for different gases at 15 ppm concentration

Ammonia gas was used to demonstrate the room temperature gas sensing performance of the developed pure and Mn-doped ZnO thin films for 15 ppm. Figure 8 (a-c) shows the response of the ammonia sensor with undoped and Mn-doped ZnO films under 15 ppm ammonia at room temperature. The air resistance for pure ZnO and Mn doped ZnO films is rapidly decreases when we introduce ammonia inside the chamber (as shown in Fig. 8). The air resistance sharply decreases because ammonia is a reducing gas and prepared films are n-type semiconductors. From Fig. 8 (c), it shows that 4% Mn-doped films exhibited higher sensing performance than that of the pristine ZnO film. The responses of films towards 15 ppm concentration are 65%, 70%, and 90% for 0%, 2%, and 4% Mn-doped correspondingly at room temperature. It emphasizes that 4% Mn-doped ZnO thin films exhibited superior ammonia gas sensing properties than the other prepared films. The response time and recovery time is calculated using the time versus resistance graph of the sensing factor of ammonia at 15 ppm. The calculated response and recovery times are given in Table 2. The response and recovery times for intrinsic ZnO thin film are found to be 23 s and 22 s respectively. With intensified doping content of Mn up to 2% and 4%, the response and recovery times took an edge off to 17 s and 10 s and 13 s, and 7 s respectively with stable baselines. The reduction in response time and recovery time in sensitivity attributes a higher Mn doping to the nanoplates and less agglomerations. Table 2 is epitomized in the form of a bar graph as shown in Fig. 9. It makes clear that the response recovery times decrease with Mn concentration.

Fig. 8
figure 8

Response and recovery times of (a) undoped, (b) 2% Mn doped and (c) 4% Mn doped ZnO samples

Table 2 Recovery and Response times of Pure and Mn-doped ZnO samples
Fig. 9
figure 9

Response and recovery time Vs. Gas concentration with an error bar of undoped and Mn-doped ZnO films

Figure 10(a) shows the ammonia vapor response of the 4% Mn-doped ZnO film with varying ammonia concentration from 15 to 30 ppm. From Fig. 10(a), it is seen that as the concentration increases the sensitivity also value increase. This confirms that the quantity of vapor interacting with the surface of the Mn-doped ZnO films is a significant factor in determining the response. Also, the repeatability of all the samples was analyzed for the duration of 30 days to observe the response for 15 ppm ammonia gas concentration. The stable response was achieved for all the samples as shown in Fig. 10(b). Hence, the synthesized samples have a stable ammonia response at room temperature for 15 ppm concentration. Figure 10(c) shows gas response versus gas concentration plot which also shows a linear increase in response to increasing NH3 gas concentration. A response of 85.5% is obtained at 30 ppm for 4% Mn doped ZnO film.

Fig. 10
figure 10

a Response-recovery curves of 4% Mn for different NH3 gas concentrations; (b) repeatability of undoped, 2% Mn and 4% Mn-doped ZnO samples for 30 days to 15 ppm of NH3 gas concentration; (c) sensor response vs NH3 gas concentration

This improved response of 4% Mn-doped ZnO thin film samples was attributed to the altered surface erected nanoplate morphology with innumerable voids which provided the proper gaps for the ammonia gas molecules to percolate onto the surface of the sample and also allows the trapped gas molecules to escape out, when the gas is sent out. Morphology in fact plays a very important role to shorten the response and recovery times. As the agglomerations decreased in the Mn contaminated samples in comparison to that of the pure sample which may be the one of the reasons for improved sensitivity. Sensitivity of any gas sensor is mainly related to the extent of diffusion of gas molecules of the specimen which is responsible to their absorption and desorption. But if there are more agglomerations on the film’s surface, diffusion of gas molecules becomes more difficult into the agglomerated surface [53]. With the increased concentration level, enhanced sensitivity was observed which may be on the grounds that there will be an adequate amount of ammonia gas molecules available to interact with the surface of the specimen [54]. D. Wang et al., in their work studied that the Mn doped ZnO with hollow ball morphology were highly selective to the acetone gas [55]. R. S. Ganesh et al., achieved better response (28.5) for 8 wt% Mn doped ZnO nanospheres for 100 ppm but at 150 ℃ optimal temperature [56]. This was credited as an impact of Mn doping on pristine ZnO thin films. The sensitivity of 15.4% was ascertained for Mn doped ZnO thin films by T. Elavarasen et. al., in their research on Mn-doped ZnO nanostructures [57]. A. Ramesh and co-workers noted that Mn-doped ZnO nanospheres offered a response of 20.2 for 100 ppm ammonia gas concentration [58]. A more thorough literature survey has been displayed in the Table 3. Hence, more clearly it confirms the worthy outcomes of the present work as compared to the above-mentioned literature, as the Mn doping to ZnO matrix presents the best response for 15 ppm ammonia concentration even at room temperature.

Table 3 Review of Literature of various gas sensing samples

Gas sensing mechanism

The technique of gas sensing is associated with the interaction of a gas and a solid at the surface of the thin film [19]. The interaction of the analytic gas molecules with surface varies the resistance of the semiconducting sample is the basic approach behind the gas sensing mechanism. This variation in resistance arises due the presence and absence of gas vapors. When the air-tight chamber is kept open, the atmospheric air interacts with the surface of the specimen. Hence, the oxygen molecules present in the air gets adsorbed on the surface of the film. Then the formation of oxygen ions takes place using the conduction band electrons of the ZnO thin film, which leads to the increase in thickness of the depletion layer, and thereby, increases the resistance of the film. It is because, when the ammonia gas comes in contact with the film surface, it reacts with the adsorbed oxygen ions and the trapped electrons are released back into the conduction band, due to its reducing nature [59]. This leads to the decrease in the thickness of the depletion layer which in turn decreases the electrical resistance followed by gain in conductivity [60]. This can be explained using the following reactions:

$$O_2+{e^{-1}}_{ZnO\;surface}\rightarrow{O^-}_{2(ZnO\;surface)}$$
(12)
$$NH_3+3\;{O^-}_{2(ad)}\rightarrow2N_2+6H_2O+6e^-$$
(13)

The surface adsorbed oxygen molecules after trapping the electrons from the surface primarily forms three categories based on the operating temperature; 1. O2 ions are formed when the operating temperature is below 100℃, 2. O ions are formed when the operating temperature is in between 100℃ to 300℃ and 3. O2− ions are formed when the operating temperature is above 300℃ [61]. Hence, as mentioned in the referred literature, there is a possibility to form O2 ions in our fabricated Mn doped ZnO surface. Two factors are mainly responsible for an enhanced gas sensing nature of any sensor. One is the number of electrons trapped by the adsorbed oxygen atoms from the conduction band, and the second one is the number of electrons liberated back to the conduction band on encountering the sample surface with ammonia gas, which possesses reducing property [62]. Based on this, it is conclude that ammonia plays a crucial role in releasing the trapped electrons back into the conduction band from the adsorbed oxygen ions. This phenomenon is an analyzed as the mechanism gas sensing for ammonia gas. According to the outcomes of our present study, more shortened response and recovery times were found than the pure ZnO samples. This is explained as in this sequential way. As observed from the FESEM micrographs we have discussed that the Mn enhanced ZnO samples had least agglomerations and also voids were also detected. These voids are considered to be the gaps or the defects formed on the surface of the samples which act as the oxygen adsorption centers to accommodate massive number of oxygen molecules from the atmospheric air. Hence, the Mn doping to the pure ZnO has developed more oxygen vacancies than the pure ZnO surface. So, when the highest Mn contented ZnO films is exposed to the atmospheric air placed in the gas sensing chamber, the enormous number of oxygen molecules get adsorbed on the surface and further gets ionized by trapping the electrons from the conduction band of the sample as shown in Fig. 11. This makes the depletion layer thicker and hence increasing resistance in the presence of the atmospheric air. Once the substantial baseline is reached, the ammonia gas vapors are introduced to the sample. Now this time, these enormous number of electrons get back into the conduction band making the depletion region more thinner and resistance decreases soon in a steeper line so as to record the least response and the recovery times as compared to the pristine ZnO. Based on this gas sensing studies, 4% Mn doped ZnO gas sensor is a promising material for ammonia gas sensing at low concentration (15 ppm) at room temperature.

Fig. 11
figure 11

Gas sensing mechanism of Mn doped ZnO sample to the ammonia gas

4 Conclusion

In summary, ammonia sensor based on Mn-doped ZnO films has been developed by spray pyrolysis technique. The lattice parameters and volume of unit cell is found to have increased with the increase of Mn doping content. The optical absorption increases with increase in Mn concentration and the optical band gap values are witnessed to decrease from 3.27 eV to 3.25 eV, and Mn-doped ZnO films can be considered to have potential application in opto-electronics devices. The response time/recovery time values of pure ZnO, 2% and 4% Mn-doped ZnO films are found to have 23 s & 22 s, 17 s and 10 s, and 13 s and 7 s respectively. The 4% Mn doped ZnO thin films exhibited excellent ammonia vapor sensing properties with a high response of 90% in a low limit detection at room temperature owing to erected nanoplates like morphology with less agglomerations. Furthermore, the quick response/recovery time has endowed enhanced sensing performance as compared to undoped ZnO film. These results emphasize the potential application of prepared 4% Mn doped ZnO sensors for room temperature operating ammonia3 gas sensor.