Study on the Synthesis of ZnO Nanoparticles Using Azadirachta indica Extracts for the Fabrication of a Gas Sensor

This paper compared the effects of A. indica plant proteins over chemical methods in the morphology of zinc oxide nanoparticles (ZnO NPs) prepared by a co-precipitation method, and ethanol sensing performance of prepared thin films deposited over a fluorene-doped tin oxide (FTO) bind glass substrate using spray pyrolysis technique. The average crystallite sizes and diameters of the grain-sized cluster ZnO NPs were 25 and (701.79 ± 176.21) nm for an undoped sample and 20 and (489.99 ± 112.96) nm for A. india dye-doped sample. The fourier transform infrared spectroscopy (FTIR) analysis confirmed the formation of the Zn–O bond at 450 cm−1, and also showed the presence of plant proteins due to A. indica dye extracts. ZnO NPs films exhibited good response (up to 51 and 72% for without and with A. indica dye-doped extracts, respectively) toward ethanol vapors with quick response-recovery characteristics at a temperature of 250 °C for undoped and 225 °C for A. indica dye-doped ZnO thin films. The interaction of A. indica dye extracts helps to decrease the operating temperature and increased the response and recovery rates of the sensor, which may be due to an increase in the specific surface area, resulting in adsorption of more oxygen and hence high response results.


Introduction
Gas tracking devices are becoming increasingly popular for a variety of physical, chemical, and biological purposes. For the detection of harmful pollutant gases, flammable gases, and organic vapors, metal oxide-based chemical sensors have been widely used. Chemical sensors have several benefits, including low cost, compact size, great sensitivity, and minimal power usage [1]. Ethanol is one of the most widely used and distributed alcohols in the fields of food technology, brewing, medicine, clinical research, and biotechnology [2][3][4][5]. Excessive ethanol consumption is harmful to living creatures. In humans, ethanol vapor exposure during development can result in ventricular and septal wall thickening [2]. As a result, detecting ethanol fumes is quite important at this time. Different metal oxide semiconductor (MOSs) such as ZnO, TiO 2 , WO 3 , In 2 O 3 , MoO 3 , SnO 2 , and Fe 2 O 3 , and multi-component oxides, such as BiFeO 3 , Al 2 O 3 -ZnO, Cu-TiO 2, Cr-TiO 3, MgAl 2 O 4 , SnO 2 -Pd-Pt, SrTiO 3 , and Nb 2 O 5 -ZnO, are useful for UV sensing [6][7][8], solar cells [9], photocatalytic effects [10], and gas sensing applications [11]. Gas sensors based on the nanostructures of MOSs have a high sensitivity with short response and recovery

Structural Analysis
The structural analysis of the prepared ZnO NPs with and without A. indica dye extracts was performed using X-ray diffraction (XRD). XRD testing was performed using a D 2 Phaser (Bruker, Berlin, Germany) diffractometer with CuK α radiation (wavelength = 1.54184 Å) at an operating voltage of 30 kV and a current of 10 mA. The scanning rate was 0.33 degrees per second in the 2θ range of 20 • to 80 • . Figure 1 shows the XRD pattern of the asprepared ZnO NPs. The sharp diffraction peak indicates the good crystallinity of the prepared ZnO NPs [23]. Interplanar spacing (d-spacing) was obtained using Bragg's relation: 2d sin θ = nλ [17], where λ is the X-ray wavelength, n is the order of reflection, and θ is Bragg's angle. The calculated values of 'd' are compared with the standard JCPDS values for indexing the (hkl) planes as demonstrated in Table 1 [24]. There were slight shifts in the 2θ values with those of the JCPDS card number . This may be due to the strain. The comparison of the 'd' values of both samples shows only a slight decrease in 'd' values, which may be due to the doping of the parent solution with A. indica dye [25].
due to the strain. The comparison of the 'd' values of both samples shows only a decrease in 'd' values, which may be due to the doping of the parent solution with A. dye [25].    The average crystallite size was estimated by measuring the broadening of the Xray diffraction peaks observed in the XRD pattern using the Debye-Scherrer formula: D = 0.9λ β cos θ [26], where 0.9 is the Debye constant, λ is the X-ray wavelength of 1.54184 Å, and β is the FWHM of the sharp peak. The average estimated value of the crystallite size of ZnO NPs without and with A. indica dye were 25 nm and 20 nm individually. The natural dye of A. indica leaf extracts contains different reducing factors, such as phytochemicals and enzymes, which carry out the significant reaction involved in the green synthesis of ZnO NPs. The dye extracts of leaves stabilize the NPs and stop them from aggregating [26].

Morphological Analysis
The peripheral morphology of ZnO NPs without and with A. indica dye extracts stood primarily using the scanning electron microscopy (SEM) (Ipvnano, Pune, India) analysis, and the subsequent images are shown in Figure 2. Using the ImageJ method [27], the diameter of the grain-sized cluster ZnO was estimated. The morphological features of both samples were considerably different based on the observed SEM estimation. The average diameter of the ZnO grain-sized NPs cluster was (701.79 ± 176.21) nm without dye extracts and (489.99 ± 112.96) nm with A. indica dye extracts. This finding suggests that the addition of A. indica dye extracts affects the morphology of thin films. Furthermore, the ZnO NPs were less aggregated and agglomerated for the A. indica dye extracts. This may be due to the strong kinship among them, which results in less accumulation or collection [24]. As a consequence, A. indica dye extracts greatly increase NP constancy and collection, and A. indica dye extracts lowered the diameter of ZnO NPs [25].  Figure 3 presents the energy-dispersive X-ray (EDX) (Ipvnano, Pune, India) spectra  Figure 3 presents the energy-dispersive X-ray (EDX) (Ipvnano, Pune, India) spectra of the ZnO NPs without and with A. indica dye extracts. The EDX spectra showed the presence of Zn and O in the synthesized NPs and the purity of the prepared ZnO NPs. The sharp peaks at 1.0, 8.5, and 9.5 keV in the figure indicate the appearance of zinc, and the peak at 0.5 keV reflected the presence of oxygen. The atomic composition of the bare ZnO NPs was 51.37 and 48.63% for zinc and oxygen, respectively. The atomic spreading of the A. indica dye extracts was 50.03% for zinc and 49.97% for oxygen. The introduction of A. indica dye helped to increase the oxygen ratio slightly to the prepared ZnO NPs, which may be due to the presence of water-soluble proteins from plant extracts. Thus, from the above configuration results, we can easily confirm that the synthesized ZnO NPs of both samples gained a high degree of purity.

Fourier Transform Infrared Spectroscopy Analysis
The Fourier transform infrared (FTIR) (Chem Tech Pro, 4100, Gujarat, India) s trum presented in Figure 4 was applied to examine the cleanliness and arrangeme ZnO NPs without and with A. indica dye extracts. For both samples, the peaks at 450 527 cm −1 are the typical absorption of ZnO [28]. The spectra shown at 630-660 cm − attributed to the occurrence of N-H stretching bonds and the peaks between 837 and cm −1 are due to C-H stretching of aromatics [29]. The bands at 977 and 1094 cm −1 c spond to the C-N stretching of alcohol and phenolic groups, aliphatic amines, and phatic and aromatic amides [29]. Similarly, the spectrum bands illustrated between and 1579 cm −1 can be attributed to O-H and C-OH stretching vibration of polyols [30] extensive band at 1618 cm −1 might likely remain due to the C=C elongation of arom rings [30]. The band created at 2912 cm −1 likely correlated to the C-H stretching of po [31]. In addition, the bands at 3400, 3430, and 3615 cm −1 correlated with the O-H wide of the phenolic compounds in the dye extracts [31].

Fourier Transform Infrared Spectroscopy Analysis
The Fourier transform infrared (FTIR) (Chem Tech Pro, 4100, Gujarat, India) spectrum presented in Figure 4 was applied to examine the cleanliness and arrangement of ZnO NPs without and with A. indica dye extracts. For both samples, the peaks at 450 and 527 cm −1 are the typical absorption of ZnO [28]. The spectra shown at 630-660 cm −1 are attributed to the occurrence of N-H stretching bonds and the peaks between 837 and 850 cm −1 are due to C-H stretching of aromatics [29]. The bands at 977 and 1094 cm −1 correspond to the C-N stretching of alcohol and phenolic groups, aliphatic amines, and aliphatic and aromatic amides [29]. Similarly, the spectrum bands illustrated between 1105 and 1579 cm −1 can be attributed to O-H and C-OH stretching vibration of polyols [30]. The extensive band at 1618 cm −1 might likely remain due to the C=C elongation of aromatic rings [30]. The band created at 2912 cm −1 likely correlated to the C-H stretching of polyols [31]. In addition, the bands at 3400, 3430, and 3615 cm −1 correlated with the O-H widening of the phenolic compounds in the dye extracts [31]. The peaks viewed in FTIR spectra of ZnO NPs after addition of A. indica such as 3430, 1579, 1484, 1440, 1094, 837, and 660 cm −1 show the presence of polyols, terpe and proteins partaking functional groups of amines, alcohols, ketones, and carboxyl in bio-reduction responses [26]. Raphael et al. reported that proteins obtained fr indica acted as a green reductant for the synthesis of NPs [32]. Terpenoids, polyol amino groups, carboxylic groups, alcohols, and ketones derived from A. indica le tracts play a significant role in bio-reduction reactions that are responsible for the r tion of zinc ions into ZnO NPs [23]. In addition, the several amide groups of protei as capping material that avoids agglomeration and makes ZnO NPs more stable Thus, the soluble substances present in the dye of A. indica could have acted as a ca and stabilizing agent, which averts the accumulation of NPs in the solution and pla important part in the extracellular forge and shaping of ZnO NPs [34]. Thus, fro above results we may conclude that the soluble substances present in the dye of A. could have acted as a capping and stabilizing agent, which averts the accumulat NPs in the solution and plays a significant role in the extracellular forge and shap ZnO NPs.

Sensitivity Analysis
Here, thin films of ZnO without and with A. indica dye extracts were coated on substrates. The resistance of the FTO before and after coating the ZnO thin film measured. The resistance of the FTO increased after the coating of thin films for both ples, confirming the ZnO thin film deposition. In this study, the response of ZnO films was measured with respect to the change in resistance before and after the inj of ethanol vapor. The response of an N-type semiconductor of metal oxide thin fil sensor for reducing gases can be calculated by using Equation (1) [32]. The peaks viewed in FTIR spectra of ZnO NPs after addition of A. indica such as 3615, 3430, 1579, 1484, 1440, 1094, 837, and 660 cm −1 show the presence of polyols, terpenoids, and proteins partaking functional groups of amines, alcohols, ketones, and carboxylic acid in bio-reduction responses [26]. Raphael et al. reported that proteins obtained from A. indica acted as a green reductant for the synthesis of NPs [32]. Terpenoids, polyols, free amino groups, carboxylic groups, alcohols, and ketones derived from A. indica leaf extracts play a significant role in bio-reduction reactions that are responsible for the reduction of zinc ions into ZnO NPs [23]. In addition, the several amide groups of proteins act as capping material that avoids agglomeration and makes ZnO NPs more stable [33]. Thus, the soluble substances present in the dye of A. indica could have acted as a capping and stabilizing agent, which averts the accumulation of NPs in the solution and plays an important part in the extracellular forge and shaping of ZnO NPs [34]. Thus, from the above results we may conclude that the soluble substances present in the dye of A. indica could have acted as a capping and stabilizing agent, which averts the accumulation of NPs in the solution and plays a significant role in the extracellular forge and shaping of ZnO NPs.

Sensitivity Analysis
Here, thin films of ZnO without and with A. indica dye extracts were coated on FTO substrates. The resistance of the FTO before and after coating the ZnO thin films was measured. The resistance of the FTO increased after the coating of thin films for both samples, confirming the ZnO thin film deposition. In this study, the response of ZnO thin films was measured with respect to the change in resistance before and after the injection of ethanol vapor. The response of an N-type semiconductor of metal oxide thin film gas sensor for reducing gases can be calculated by using Equation (1) [32].
where R is the response of a thin film in terms of change in resistance, R a is the air resistance, and R g is the gas resistance. One hundred parts per million of ethanol were injected into the sensing chamber, and the resistance of the ZnO thin film at different temperatures in air and ethanol vapor was measured. The sensing performance of the ZnO films was then studied. The optimization of the operational temperature is mandatory before measuring the response of the ZnO thin film. The response measurements of ZnO films without and with A. indica dye extract in the temperature range of 50-325 • C of ethanol vapor are shown in Figure 5. A maximum response of 51.13% and 71.95% were obtained for the ZnO thin film without and with dye extracts at an operating temperature of 250 • C and 225 • C, respectively. The introduction of A. indica dye extracts slightly decreased the operating temperature from 250 • C to 225 • C. The decline in operating temperature on the addition of A. indica dye extracts may be due to a decrease in activation energy of the reaction in the ZnO thin film [4]. Oxygen vacancies play an important role in varying the conductivity and hence the response of ZnO thin films [35,36]. On increasing the temperature, the response increases; when the thermal energy reaches the boundary to bridge the activation energy barrier of the reaction, the charge volume dramatically increases and causes a high response behavior. After crossing the optimum temperature, desorption of oxygen molecules occurs from the ZnO thin film, which decreases the response [13].
where R is the response of a thin film in terms of change in resistance, Ra is the air resistance, and Rg is the gas resistance. One hundred parts per million of ethanol were injected into the sensing chamber, and the resistance of the ZnO thin film at different temperatures in air and ethanol vapor was measured. The sensing performance of the ZnO films was then studied. The optimization of the operational temperature is mandatory before measuring the response of the ZnO thin film. The response measurements of ZnO films without and with A. indica dye extract in the temperature range of 50-325 °C of ethanol vapor are shown in Figure 5. A maximum response of 51.13% and 71.95% were obtained for the ZnO thin film without and with dye extracts at an operating temperature of 250 °C and 225 °C, respectively. The introduction of A. indica dye extracts slightly decreased the operating temperature from 250 °C to 225 °C. The decline in operating temperature on the addition of A. indica dye extracts may be due to a decrease in activation energy of the reaction in the ZnO thin film [4]. Oxygen vacancies play an important role in varying the conductivity and hence the response of ZnO thin films [35][36]. On increasing the temperature, the response increases; when the thermal energy reaches the boundary to bridge the activation energy barrier of the reaction, the charge volume dramatically increases and causes a high response behavior. After crossing the optimum temperature, desorption of oxygen molecules occurs from the ZnO thin film, which decreases the response [13]. The response of an ethanol gas sensor was increased dramatically when A. indica dye extract was introduced in ZnO NPs. The natural capping agents present in A. indica dye extracts decreased both the grain and crystallite size of ZnO NPs [37]. The decrease in the grain size of ZnO NPs leads to significant increase in the specific surface area, which leads to high activity by adsorbing more oxygen molecules, and helps to enhance the response [38]. Moreover, the geometric dimensions of nanocrystalline and molecular sizes are  The response of an ethanol gas sensor was increased dramatically when A. indica dye extract was introduced in ZnO NPs. The natural capping agents present in A. indica dye extracts decreased both the grain and crystallite size of ZnO NPs [37]. The decrease in the grain size of ZnO NPs leads to significant increase in the specific surface area, which leads to high activity by adsorbing more oxygen molecules, and helps to enhance the response [38]. Moreover, the geometric dimensions of nanocrystalline and molecular sizes are comparable, which predetermines the difference between the kinetics of chemical transformations in nanocrystalline systems and similar processes in coarsely crystalline materials [39]. These specific features make ZnO thin films very promising for development of high-sensitivity fast-response gas sensors, in which just surface processes play the key role in the formation of a sensor signal.
The response characteristics of the ZnO NPs films on the exposure of 25, 50, 75, and 100 ppm of ethanol were studied. For the purpose of computing response, each sample was analyzed five times, and the average result for each sample are displayed in Figures 6 and 7. For varying concentrations of ethanol, Figure 6a shows the behavior of the ZnO thin film without and with A. indica dye extracts. Clearly, the response increased for higher concentration of ethanol for both cases. At Figure 6b depicted the curve of sensor resistance against time for ZnO thin films without and with A. indica dye extracts at 25, 50, 75, and 100 ppm ethanol concentrations at 250 and 225 • C. The sensor element is exposed to an air-ethanol mixture before being discharged back into the atmosphere. When exposed to air, the sensor's resistance is strong, but it drops dramatically when exposed to ethanol. The ZnO semi-conductor gas sensor exhibited similar behavior [1,40,41]. The response rate and recovery rate are also important parameters in a gas sensor [42]. The measurement process of response and recovery times is shown in Figure 6c. For all ethanol concentrations, the response of A. indica dye extracts ZnO thin films is always greater than that of pure ZnO thin films, as shown in Figure 6d. comparable, which predetermines the difference between the kinetics of chemical transformations in nanocrystalline systems and similar processes in coarsely crystalline materials [39]. These specific features make ZnO thin films very promising for development of high-sensitivity fast-response gas sensors, in which just surface processes play the key role in the formation of a sensor signal. The response characteristics of the ZnO NPs films on the exposure of 25, 50, 75, and 100 ppm of ethanol were studied. For the purpose of computing response, each sample was analyzed five times, and the average result for each sample are displayed in Figures  6 and 7. For varying concentrations of ethanol, Figure 6a shows the behavior of the ZnO thin film without and with A. indica dye extracts. Clearly, the response increased for higher concentration of ethanol for both cases. At 25, 50, 75, and 100 ppm ethanol, pure ZnO thin films responded with 39.58, 40.71, 40.77, and 51.13%, respectively; however, the response of A. indica doped ZnO thin films was 50.52, 56.19, 61.95, and 71.95%, respectively. Figure 6b depicted the curve of sensor resistance against time for ZnO thin films without and with A. indica dye extracts at 25, 50, 75, and 100 ppm ethanol concentrations at 250 and 225 °C. The sensor element is exposed to an air-ethanol mixture before being discharged back into the atmosphere. When exposed to air, the sensor's resistance is strong, but it drops dramatically when exposed to ethanol. The ZnO semi-conductor gas sensor exhibited similar behavior [1,40,41]. The response rate and recovery rate are also important parameters in a gas sensor [42]. The measurement process of response and recovery times is shown in Figure 6c. For all ethanol concentrations, the response of A. indica dye extracts ZnO thin films is always greater than that of pure ZnO thin films, as shown in Figure 6d. ZnO thin film after the A. indica dye extract doping. The oxygen adsorption process is the main factor determining the rate of response and recovery cycles [43]. The increasing response and recovery time for ZnO with A. indica dye extracts are attributed to the modification of the ZnO surface morphology and increased porosity between the grain-sized ZnO nanostructures, which provide more surface-active sites to promote interaction with ethanol vapor [44].

Sensing Mechanism
The response features of the ethanol-based gas sensor using ZnO thin films are directly linked to the modification of ZnO NPs. Here, the resistance of the thin film decreased with the supply of ethanol vapor in the sensing device, as shown in Figure 6b. The oxygen present in the atmosphere gets absorbed on the ZnO film as O 2− or O − , taking electrons from the conduction band of the ZnO and resulting in a depletion zone on the ZnO thin film [4]. This process increased the resistance of the ZnO thin film significantly. On the exposure of ethanol vapor, the ethanol vapor molecules interact with the absorbed oxygens and reinject the carrier, thereby decreasing the resistance of the ZnO thin film [45]. This effect is relatively higher in ZnO thin films using A. indica dye extracts than in thin films without dye. Therefore, the ZnO thin film with A. indica extracts shows a large gap in resistance between with ethanol vapor and without ethanol vapor in the sensing device, leading to an increase in the response of the device. The probability of the  (Figure 7b). The response and recovery times of the ZnO thin film increased with the addition of A. indica dye extracts at ethanol concentrations ranging from 25 ppm to 100 ppm. This is due to the increased carrier concentration in the ZnO thin film after the A. indica dye extract doping. The oxygen adsorption process is the main factor determining the rate of response and recovery cycles [43]. The increasing response and recovery time for ZnO with A. indica dye extracts are attributed to the modification of the ZnO surface morphology and increased porosity between the grain-sized ZnO nanostructures, which provide more surface-active sites to promote interaction with ethanol vapor [44].

Sensing Mechanism
The response features of the ethanol-based gas sensor using ZnO thin films are directly linked to the modification of ZnO NPs. Here, the resistance of the thin film decreased with the supply of ethanol vapor in the sensing device, as shown in Figure 6b. The oxygen present in the atmosphere gets absorbed on the ZnO film as O 2− or O − , taking electrons from the conduction band of the ZnO and resulting in a depletion zone on the ZnO thin film [4]. This process increased the resistance of the ZnO thin film significantly. On the exposure of ethanol vapor, the ethanol vapor molecules interact with the absorbed oxygens and reinject the carrier, thereby decreasing the resistance of the ZnO thin film [45]. This effect is relatively higher in ZnO thin films using A. indica dye extracts than in thin films without dye. Therefore, the ZnO thin film with A. indica extracts shows a large gap in resistance between with ethanol vapor and without ethanol vapor in the sensing device, leading to an increase in the response of the device. The probability of the interaction of ethanol vapor with the ZnO thin film can be explained in Figure 8, as noted in previous literature [46]. interaction of ethanol vapor with the ZnO thin film can be explained in Figure 8, as noted in previous literature [46]. The approved reactions are initiated by the acid-alkaline behavior of the ZnO thin film. The dehydrogenation procedure mainly occurs on the ZnO thin film with alkaline possessions; however, dehydration is preferred in the acidic region of the ZnO thin film [47]. At determined temperatures (<200 °C), more gaseous elements are adsorbed, depletion area formed on the thin film of ZnO extends intensely, providing a large possibility of interacting ethanol vapor molecules with adsorbed oxygens, thereby generating an improved response [5]. The ZnO thin film with A. Indica dye adsorbed more oxygen than that of the pure ZnO thin film because of large specific surface area and desorption of function groups attached with thin film at higher temperatures [48]. This effect caused high possibility of interaction of ethanol vapor molecules with oxygen, resulting in a significant decrease in the resistance of the film, which increased the response. However, at low temperatures, the surface of the ZnO thin film was not perfectly desorbed, which caused a small change in resistance. This slight change in resistance significantly decreased the sensing properties of the ZnO thin film.

Synthesis of ZnO NPs without Plant Extracts
ZnO NPs were prepared using the precipitation method. Initially, a 2 M zinc nitrate hexahydrate [Zn (NO3)2.6H2O] mixture was prepared in ethanol with continuous stirring using a magnetic stirrer for an hour (h) [49]. Concurrently, a 1 M ethanol solution of sodium hydroxide [C2H7NaO2] was prepared with continuous stirring using a magnetic stirrer for 2 h in a different beaker. Likewise, an ethanol solution of sodium hydroxide zinc nitrate solution was added dropwise to the zinc nitrate solution with robust stirring to produce a white precipitate. After total inclusion, the blend was allowed to settle for 1 d. Finally, the resulting precipitate was centrifuged four times at 1000 rpm (centrifuge model 800-B, China), with 10 min (m) each time, for the removal of contaminants. The precipitate was then cleaned three times using distilled water, followed by ethanol. Finally, the filtered white precipitate was dried at 120 °C and then annealed at 500 °C using a muffle furnace (BOECO Muffle Furnace, MF 8/1100, 230 V, 50/60 Hz, Lilienthal, Germany) for 12 h [49].

Synthesis of ZnO with A. indica Dye Extracts
Fresh leaves of A. indica were washed several times using distilled water and dehydrated at room temperature. The leaf extracts were then ground, 10 g of ground leaves were mixed in 40 mL of distilled water, and the mixture of leaves and distilled water was filtered to remove solid extracts. Finally, the fine solution of A. indica leaves and distilled water was preserved in a refrigerator at 4 °C. A 2 M zinc nitrate hexahydrate solution was The approved reactions are initiated by the acid-alkaline behavior of the ZnO thin film. The dehydrogenation procedure mainly occurs on the ZnO thin film with alkaline possessions; however, dehydration is preferred in the acidic region of the ZnO thin film [47]. At determined temperatures (<200 • C), more gaseous elements are adsorbed, depletion area formed on the thin film of ZnO extends intensely, providing a large possibility of interacting ethanol vapor molecules with adsorbed oxygens, thereby generating an improved response [5]. The ZnO thin film with A. Indica dye adsorbed more oxygen than that of the pure ZnO thin film because of large specific surface area and desorption of function groups attached with thin film at higher temperatures [48]. This effect caused high possibility of interaction of ethanol vapor molecules with oxygen, resulting in a significant decrease in the resistance of the film, which increased the response. However, at low temperatures, the surface of the ZnO thin film was not perfectly desorbed, which caused a small change in resistance. This slight change in resistance significantly decreased the sensing properties of the ZnO thin film.

Synthesis of ZnO NPs without Plant Extracts
ZnO NPs were prepared using the precipitation method. Initially, a 2 M zinc nitrate hexahydrate [Zn (NO 3 ) 2 .6H 2 O] mixture was prepared in ethanol with continuous stirring using a magnetic stirrer for an hour (h) [49]. Concurrently, a 1 M ethanol solution of sodium hydroxide [C 2 H 7 NaO 2 ] was prepared with continuous stirring using a magnetic stirrer for 2 h in a different beaker. Likewise, an ethanol solution of sodium hydroxide zinc nitrate solution was added dropwise to the zinc nitrate solution with robust stirring to produce a white precipitate. After total inclusion, the blend was allowed to settle for 1 d. Finally, the resulting precipitate was centrifuged four times at 1000 rpm (centrifuge model 800-B, China), with 10 min (m) each time, for the removal of contaminants. The precipitate was then cleaned three times using distilled water, followed by ethanol. Finally, the filtered white precipitate was dried at 120 • C and then annealed at 500 • C using a muffle furnace (BOECO Muffle Furnace, MF 8/1100, 230 V, 50/60 Hz, Lilienthal, Germany) for 12 h [49].

Synthesis of ZnO with A. indica Dye Extracts
Fresh leaves of A. indica were washed several times using distilled water and dehydrated at room temperature. The leaf extracts were then ground, 10 g of ground leaves were mixed in 40 mL of distilled water, and the mixture of leaves and distilled water was filtered to remove solid extracts. Finally, the fine solution of A. indica leaves and distilled water was preserved in a refrigerator at 4 • C. A 2 M zinc nitrate hexahydrate solution was prepared in distilled water under vigorous stirring. After vigorous stirring, 10 mL of aqueous leaf extracts of A. indica were introduced into the above solution, and a 1 M ethanol solution of sodium hydroxide was mixed in the above mixture dropwise and stirred thoroughly to obtain a white precipitate. The mixture containing the white precipitate was then stirred using a magnetic stirrer for 2 h. After stirring, the mixture was washed three times with distilled water and ethanol and then filtered. Finally, the filtered white precipitate was dried at 120 • C and then annealed at 500 • C using a muffle furnace. A schematic of the synthesis of ZnO using the green scheme is illustrated in Figure 9. prepared in distilled water under vigorous stirring. After vigorous stirring, 10 mL of aque ous leaf extracts of A. indica were introduced into the above solution, and a 1 M ethano solution of sodium hydroxide was mixed in the above mixture dropwise and stirred thor oughly to obtain a white precipitate. The mixture containing the white precipitate wa then stirred using a magnetic stirrer for 2 h. After stirring, the mixture was washed thre times with distilled water and ethanol and then filtered. Finally, the filtered white precip itate was dried at 120 °C and then annealed at 500 °C using a muffle furnace. A schemati of the synthesis of ZnO using the green scheme is illustrated in Figure 9.

Synthesis of ZnO Thin Films
ZnO thin film was deposited on the FTO coated glass substrate using the spray py rolysis technique. This method is especially convenient for the settling of ZnO NPs an has been a measurement method for applying a clear electrical conductor of metal oxide to a glass surface [5]. In this process, as shown in Figure 10, the spraying rate remains th same, and the back and forth motions of the machine determine the number of coat which is digitally controlled. The main benefits of using the spray pyrolysis technique ar the spherical surface shape, narrow distribution of atoms or molecules, compilation un formity, and height controllability of the arrangement of the obtained products and the appropriateness for succeeding refining [50].

Synthesis of ZnO Thin Films
ZnO thin film was deposited on the FTO coated glass substrate using the spray pyrolysis technique. This method is especially convenient for the settling of ZnO NPs and has been a measurement method for applying a clear electrical conductor of metal oxides to a glass surface [5]. In this process, as shown in Figure 10, the spraying rate remains the same, and the back and forth motions of the machine determine the number of coats, which is digitally controlled. The main benefits of using the spray pyrolysis technique are the spherical surface shape, narrow distribution of atoms or molecules, compilation uniformity, and height controllability of the arrangement of the obtained products and their appropriateness for succeeding refining [50].
A precursor solution was prepared by taking 4.06 g of ZnO in a beaker with 50 mL of ethanol. The solution was mixed using a magnetic stirrer for 1 h at a temperature of 60 • C. The resulting solution was filtered using a filter paper and used to prepare thin films using the spray pyrolysis method. The distance from the nozzle to the glass substrate was 2.0 cm, the diameter of the nozzle was 0.5 cm, and the flow rate was maintained at 8 mL/min. The operating pressure range was maintained between 8 and 16 psi. The spray pyrolysis process included the deposition of ZnO thin films in which the dispersed solution of ZnO NPs prepared with ethanol was sprayed uniformly on the glass substrate over the heated surface at 300 • C. This method yields a very uniform thin film of ZnO owing to the constant spray rate of the nozzle of the spray gun. A precursor solution was prepared by taking 4.06 g of ZnO in a beaker with 50 mL of ethanol. The solution was mixed using a magnetic stirrer for 1 h at a temperature of 60 °C. The resulting solution was filtered using a filter paper and used to prepare thin films using the spray pyrolysis method. The distance from the nozzle to the glass substrate was 2.0 cm, the diameter of the nozzle was 0.5 cm, and the flow rate was maintained at 8 mL/min. The operating pressure range was maintained between 8 and 16 psi. The spray pyrolysis process included the deposition of ZnO thin films in which the dispersed solution of ZnO NPs prepared with ethanol was sprayed uniformly on the glass substrate over the heated surface at 300 °C. This method yields a very uniform thin film of ZnO owing to the constant spray rate of the nozzle of the spray gun.

Sensor Application
The response was measured using a custom-made ethanol gas sensor as shown in Figure 11. A nickel-chromium heater was used to heat the sensing element placed just below it, and it could be heated up to 350 °C. A thermocouple was used to monitor the temperature of the sensing element. The temperature controller was set up to maintain the temperature of the glass substrate from 90 °C to 350 °C. The source and drain were fabricated in the ZnO thin film with the help of insulating copper wire using the silver paste and then connected to a fluke multimeter (FLUKE-115, Everett, U.S.) for resistance measurement. To measure the resistance after injecting the gas, the glass chamber was made airtight. The circuit configuration of the gas sensor was checked by using currentvoltage characterization followed by ohmic behavior. The total volume of the sensor chamber is one liter (L). The distance between the base of the sensor chamber and the ZnO thin film is 5 cm. A syringe injects a fixed amount of liquid ethanol (25, 50, 75, or 100 ppm) into the airtight test chamber to achieve the desired concentration. The ethanol concentration calculation method is described in Equations (2)-(4) [51]: Vethanol gas = C × Vs (2) where Vethanol gas = volume of gaseous state ethanol, C (ppm) = concentration of the ethanol gas, and Vs = volume of tested chamber with, PV = nRT [51].

Sensor Application
The response was measured using a custom-made ethanol gas sensor as shown in Figure 11. A nickel-chromium heater was used to heat the sensing element placed just below it, and it could be heated up to 350 • C. A thermocouple was used to monitor the temperature of the sensing element. The temperature controller was set up to maintain the temperature of the glass substrate from 90 • C to 350 • C. The source and drain were fabricated in the ZnO thin film with the help of insulating copper wire using the silver paste and then connected to a fluke multimeter (FLUKE-115, Everett, WA, USA) for resistance measurement. To measure the resistance after injecting the gas, the glass chamber was made airtight. The circuit configuration of the gas sensor was checked by using current-voltage characterization followed by ohmic behavior. The total volume of the sensor chamber is one liter (L). The distance between the base of the sensor chamber and the ZnO thin film is 5 cm. A syringe injects a fixed amount of liquid ethanol (25, 50, 75, or 100 ppm) into the airtight test chamber to achieve the desired concentration. The ethanol concentration calculation method is described in Equations (2)-(4) [51]: where V ethanol gas = volume of gaseous state ethanol, C (ppm) = concentration of the ethanol gas, and V s = volume of tested chamber with, PV = nRT [51].
The molecular weight of the liquid is M (g/mol), the density is ρ (g/mL), and the average temperature of the test chamber is T (K). The values of M, P, Vs, and R in our work are 46 g/mol, 101,325 Pa, 1 L, 8.31441 J/(mol K), and 0.816 g/cm 3 . Equation (4) can be used to compute the ethanol intended concentration. Vinject = ρ = ρT = 0.69 × mL (4) The molecular weight of the liquid is M (g/mol), the density is ρ (g/mL), and the average temperature of the test chamber is T (K). The values of M, P, Vs, and R in our work are 46 g/mol, 101,325 Pa, 1 L, 8.31441 J/(mol K), and 0.816 g/cm 3 . Equation (4) can be used to compute the ethanol intended concentration. Figure 11. Schematic diagram of the gas sensor.

Conclusions
In summary, ZnO NPs were prepared using the precipitation method. The resulting ZnO NPs were coated on glass substrates using the spray pyrolysis method to prepare the thin film. The structural, morphological, and dimensional analyses of the ZnO NPs were performed using XRD, SEM, EDX, and FTIR. The XRD pattern shows that the mean crystallite size of ZnO NPs prepared without dye extracts was 25 nm and that of the A. indica dye extracts was 20 nm. The SEM image shows the change in morphology of ZnO NPs from more congregated to less aggregated groups after the addition of A. indica dye extracts. The EDX spectra obtained to determine the percentage composition of zinc and oxygen in the synthesized samples also indicated that the prepared ZnO NPs were pure. The FTIR analysis showed the characteristic absorption band of the ZnO bond at 450 cm −1 and also revealed the presence of water-soluble proteins such as amines, alcohols, ketones, and carboxylic acid from A. indica dye extracts. The results of the sensitivity measurements with the ZnO NPs show high sensitivity toward A. indica dye extract thin films with a figure of 71.95% for 100 ppm of ethanol. The ZnO thin film with A. indica shows significantly decreased sensor resistance for 25, 50, 75, and 100 ppm of ethanol vapor compared to that of the ZnO thin film without dye extracts. The response and recovery times of the ZnO thin film were higher than those of the bare ZnO thin film between 25 ppm and 100 ppm of ethanol. The sensitivity measurement and calculation of response and recovery for 25 ppm of ethanol concentration suggest that this sensing device can also be used to detect low concentrations of ethanol. To sum up, the addition of A. indica dye extracts to ZnO thin films significantly increased the sensing, response, and recovery times of the ethanol-based gas sensor.

Conclusions
In summary, ZnO NPs were prepared using the precipitation method. The resulting ZnO NPs were coated on glass substrates using the spray pyrolysis method to prepare the thin film. The structural, morphological, and dimensional analyses of the ZnO NPs were performed using XRD, SEM, EDX, and FTIR. The XRD pattern shows that the mean crystallite size of ZnO NPs prepared without dye extracts was 25 nm and that of the A. indica dye extracts was 20 nm. The SEM image shows the change in morphology of ZnO NPs from more congregated to less aggregated groups after the addition of A. indica dye extracts. The EDX spectra obtained to determine the percentage composition of zinc and oxygen in the synthesized samples also indicated that the prepared ZnO NPs were pure. The FTIR analysis showed the characteristic absorption band of the ZnO bond at 450 cm −1 and also revealed the presence of water-soluble proteins such as amines, alcohols, ketones, and carboxylic acid from A. indica dye extracts. The results of the sensitivity measurements with the ZnO NPs show high sensitivity toward A. indica dye extract thin films with a figure of 71.95% for 100 ppm of ethanol. The ZnO thin film with A. indica shows significantly decreased sensor resistance for 25, 50, 75, and 100 ppm of ethanol vapor compared to that of the ZnO thin film without dye extracts. The response and recovery times of the ZnO thin film were higher than those of the bare ZnO thin film between 25 ppm and 100 ppm of ethanol. The sensitivity measurement and calculation of response and recovery for 25 ppm of ethanol concentration suggest that this sensing device can also be used to detect low concentrations of ethanol. To sum up, the addition of A. indica dye extracts to ZnO thin films significantly increased the sensing, response, and recovery times of the ethanol-based gas sensor.

Institutional Review Board Statement: Not applicable.
Informed Consent Statement: Not applicable.

Data Availability Statement:
The data that support the findings of this study are available from the corresponding author upon reasonable request.