Introduction

The present-day requirements for technology aligning with the seamless transmission of environmental data, especially within the framework of the Internet of Things (IoT), are driving continuous progress in various integral electronic components. These include, but are not limited to photocatalysts1, gas sensors2, solar cells3, and optoelectronic devices4, reflecting a dynamic landscape of innovations aimed at enhancing our ability to monitor and respond to environmental challenges.

All of these cutting-edge devices intricately depend on the fundamental functionality of semiconductor materials, where transparent conductive materials play a pivotal role. These materials are characterized by high transmittance in the ultraviolet–visible (UV–Vis) wavelength range and electrical conductivity5.

Among transparent conductive oxides (TCO), Zinc Oxide (ZnO) shows promise for the degradation of dye pollutants in photocatalytic treatment due to its non-toxic characteristics, high stability, low cost, a direct band gap of 3.36 eV, and n-type material properties, allowing it to tune with other elements for better catalytic and optoelectronic properties6,7.

A key research concern involves the elimination of hazardous dyes extensively employed as coloring agents in various industries such as textiles, leather, food, plastics, and cosmetics8. However, a significant drawback is that the majority of industrial dyes exhibit toxicity, carcinogenicity, and mutagenicity, coupled with low biodegradability9. Health risks associated with some synthetic dyes include allergic reactions and skin irritations. Additionally, the persistence of certain dyes in the environment contributes to long-term pollution, and their limited biodegradability poses disposal challenges. Effluents containing these dyes are highly pigmented, and releasing them into natural water bodies can disrupt aquatic ecosystems by impeding sunlight penetration, leading to a decline in dissolved oxygen levels10. Hence, the removal of dyes before discharging wastewater from dye industries is crucial for preserving environmental balance.

The degradation of dyes involves various techniques aimed at breaking down or transforming dye molecules into less harmful substances. Adsorption plays an important role in environmental remediation by facilitating the accumulation of pollutants on the surface of materials. It is widely valued for its simplicity, affordability, and efficiency in capturing a variety of contaminants, including both organic and inorganic substances. On the other hand, Advanced Oxidation Processes (AOPs) have emerged as potent methods for breaking down organic pollutants11. These processes work by generating reactive species, such as hydroxyl radicals (OH·), which can react quickly with all organic electron-rich molecules, breaking down harmful substances into less hazardous byproducts12,13. A combined approach involving adsorption and AOPs has shown great promise, as the adsorption step helps concentrate pollutants on the catalyst surface, enhancing their subsequent breakdown through oxidation14. Advanced Oxidation Processes (AOPs) involve many techniques, such as photocatalysis, that utilize reactive species like hydroxyl radicals to oxidize and degrade dyes. Biological methods employ microorganisms, enzymes, or fungi to metabolize and break down dyes into simpler components. Adsorption onto activated carbon or other adsorbents can effectively remove dyes from water, although this is not a true degradation process. Electrochemical degradation, involving the use of electrodes and applied electric potential, has also shown promise in breaking down dye molecules15. The choice of technique often depends on the specific dye type, environmental conditions, and the desired level of treatment efficiency.

The photocatalysis technique offers several advantageous features, including its low-cost nature. The process relies on abundant and affordable materials, such as titanium dioxide, reducing overall implementation expenses. Additionally, its energy efficiency, driven by natural or artificial light sources, contributes to cost-effectiveness. Moreover, the technique’s versatility makes it suitable for various applications, providing an economically viable and sustainable solution for pollution control and environmental remediation. Despite its significant advantages, this technique is still facing some challenges, like electron-hole recombination and low light absorption, that can be addressed by doping, use of nanostructured materials, and the design of hybrid systems to enhance efficiency. For example, D.Pathania et al. succeeded in reaching a photocatalytic efficacy of around 91.8% for the degradation of methylene blue (MB) under sunlight for 3 h using gold nanoparticles (AuNPs) supported by Cymbopogon flexuosus essential oil for their elaboration16.

The photocatalysis of water was first described and discovered in 1972 by Fujishima and Honda17. The principle can be elucidated as follows: When a photocatalyst is illuminated with light energy equal to or higher than its band gap energy, electron/hole pairs (e/h+) are generated. These photogenerated charge carriers migrate to the surface of the photocatalyst, where they interact with adsorbed species, such as water molecules and oxygen. Highly reactive radicals like hydroxyl radicals (·OH) and superoxide radicals (O2·) are created when these photogenerated charge carriers move to the catalyst’s surface and interact with adsorbed species. The oxidation of organic pollutants into less hazardous byproducts like CO2 and H2O is largely dependent on these radicals18.

In an aqueous or gaseous medium, reactants can adsorb onto the photocatalyst surface and undergo direct or indirect reactions with the photogenerated electrons and holes19. However, the efficiency of water purification from waste depends on factors such as the surface area of the photocatalyst and the energy of the electron-hole pairs produced, as well as the extent of their separation20,21. D. Pathania et al. synthesized magnesium nanoparticles (MgNPs) and noticed that samples showing smaller particle size exhibited better photocatalytic efficiency (91.2%) in degrading MB under direct sunlight radiation for 3 h22. Several studies have reported the effective use of photocatalysis to break down organic dyes and other contaminants when exposed to UV and solar radiation by manipulating the key factors of this process. For instance, recent studies carried out by I. Ameur et al. proved that elevating crystallinity, roughness and gap energy levels by doping Mg into the ZnO thin film structures can improve the photocatalytic stability and activity23. Similarly, because of their large surface area (porous surface) and effective charge carrier dynamics, the SnO2/TiO2-50 heterostructures elaborated by S.Kimet et al. have demonstrated encouraging outcomes (99% degradation efficiency with a high kinetic constant of 0.013 min− 1 ) in using solar radiation for MB degradation24. These results emphasize how crucial material optimization and design are to attaining effective photocatalytic performance.

TCO configurations have been purposefully crafted to enhance the characteristics of Transparent Conductive Oxides for application in photocatalysis, as outlined in prior works7,25,26. A full study has been carried out by A. Kulis-Kapuscinska et al. on porous ZnO thin films achieving 64% MB removal for 540 min. Actually, their study was based on a deep analysis of the degradation mechanism by exploring the SEM and XPS data before and after the photodegradation process, proving the sustainability and reproducibility of the ZnO sputtered thin films27. The Recent research efforts advocate for the synergistic integration of ZnO with other semiconductors. Researchers have underscored that such combinations represent a promising strategy for mitigating the recombination rate of charge carriers28. This approach not only amplifies the charge separation efficiency of conventional photocatalysts29 but also holds potential for advancing the mineralization of toxic organic pollutant dyes30.

Various composite forms involving ZnO have been suggested, including ZnO–TiO231, ZnO–CdS32,33, ZnO–AgBr34, ZnO–Ag2S35, and ZnO–SnO236,37. Notably, among these configurations, the ZnO−SnO2 nanocomposite stands out as an exceptional material due to its remarkably high photocatalytic activity, as corroborated by recent studies36,38,39,40,41.

This heterojunction nanomaterial demonstrates remarkable degradation efficiency for a wide range of dyes, displaying its potential in environmental remediation. Notably, S. Begum et al. successfully synthesized a ZnO−SnO2 nanocomposite via the co-precipitation method, which exhibited an impressive ability to degrade 97% of Biebrich Scarlet dye (10 mg/L) within just 40 min under UV light irradiation. Furthermore, the material demonstrated excellent reusability, maintaining its catalytic performance over eight consecutive cycles42. MB and Chromium (VI) were used as model dyes by D. Venkatesh et al. to evaluate the degradation efficiency of the ZnO−SnO2 nanocomposite. Their study demonstrated impressive results, achieving degradation rates of 89% for MB and 92% for Chromium (VI) within 90 min of solar light exposure43.

In this study, we introduce a novel approach to enhancing the photocatalytic properties of ZnO−SnO2 nanocomposites by systematically varying the percentage of Sn deposited using spray pyrolysis. Unlike previous works that have primarily focused on fixed compositions of ZnO−SnO2, our method allows for the precise control of Sn content, enabling us to investigate its impact on photocatalytic activity. By leveraging the advantages of spray pyrolysis, which yields porous thin films conducive to enhanced dye adsorption and reaction kinetics, we optimize the contact surface area between the photocatalyst and the dye molecules, facilitating faster and more efficient photocatalytic reactions.

Different techniques have been used to prepare ZnO−SnO2 nanocomposites, such as hydrothermal methods44, sol-gel45,46, co-precipitation47, and atomic layer deposition48,49,50. In this paper, ZnO−SnO2 nanocomposites were meticulously deposited by spray pyrolysis, varying the volume percentages of Sn (Zn:Sn of 100:0%, 80:20%, 50:50%, 20:80%, and 0:100%). The combination between ZnO and SnO2 is chosen for its complementary properties, where ZnO offers high photocatalytic activity, and SnO2 enhances stability and charge separation. Their synergistic heterojunction improves light absorption, electron-hole separation, and pollutant degradation efficiency. Our main objective in this study is to elucidate the impact of the incorporation of the Sn element on the photocatalytic activity.

Experimental details

Preparation of ZnO−SnO2 thin films

Pure oxides of ZnO and SnO2 and the nanocomposites of ZnO−SnO2 (Z:S) with different percentage of tin oxide 20, 50 and 80%, were deposited by chemical spray pyrolysis onto glass substrates at 350 °C.

Glass substrates were cleaned using ethanol, acetone, hydrochloric acid (HCl) and distilled water and werethen dried in a furnace at 120 °C for 15 min.

Zinc chloride (ZnCl2· 2H2O, Sigma Aldrich >%99) and tin chloride (SnCl2·2H2O, Sigma Aldrich >%99) were used to prepare the different samples.

The spray solution was prepared by dissolving 0.05 M of zinc chloride and 0.05 M of tin chloride in 200 mL of distilled water independently and was sprayed at the rate of 2 mL/min. All variables were carefully managed during the experiment. This included maintaining a consistent flow of 10 mL·min− 1 for the air compression carrying gas and controlling substrate temperatures at 350 °C. Temperature regulation was achieved using a thermocouple connected to the hotplate where the substrates were situated. Furthermore, the distance between the nozzle and the substrates was estimated to be 20 cm.

SnO2 solution was added to the ZnO precursor solution at different volume percentages, such as 20, 50, and 80%. The elaboration process is represented and detailed in Fig. 1.

Fig. 1
figure 1

Schematic representation of spray pyrolysis process for ZnO, SnO2 and ZnO−SnO2 thin film deposition.

Characterization of Zn:SnO2 thin films

The microstructure of the films was studied at room temperature by high-resolution X-ray diffraction (XRD, X’pert PRO, Philips) with monochromatic CuKα radiation (λ = 1.541874 Å) at 40 kV and 30 mA in θ–2θ configuration from 10 to 70° with a step of 0.05°.

The surface morphology was analyzed by Atomic Force Microscopy (AFM) and Electron scanning microscopy (SEM) using a commercial microscope (Bruker, MultiMode) and HITACHI-S4800, respectively, in ambient conditions. The optical transmittance was recorded from 300 to 1800 nm using UV–Vis spectrophotometer Shimadzu UV 3100 S double beam spectrophotometer. The optical properties were studied to determine the optical parameters such as the transmittance, the band gap energy and the Urbach energy.

Photocatalytic experiment

The photocatalytic activity of ZnO−SnO2 nanocomposites with different percentages of tin oxides, was evaluated by a photoreactor using a 100 W UV–C lamp.

For the measurement of the photocatalytic activity, (MB) was chosen as an organic pollutant. The evaluation of the degradation of the MB was studied using a Shimadzu-UV1800 spectrophotometer. The absorption was monitored in the wavelength range of 300–800 nm, showing a decrease in the peak intensity at 660 nm.

The degradation under Ultraviolet light irradiation for ZnO−SnO2 nanocomposites was studied. An aqueous solution of MB with a concentration of 3 mg L− 1 was stirred for a few minutes. Afterwards, thin films of pure oxides (pure zinc and pure tin) and ZnO−SnO2 nanocomposites (20%, 50% and 80%) were placed into 5 glass boxes containing 30 mL of MB solution and were magnetically stirred and kept under dark conditions for 30 min. Then, they were exposed to Ultraviolet radiation for different times: 30, 60, 120 and 180 min.

Results and discussion

Structural and morphological properties

In order to investigate the crystalline quality of the films ZnO−SnO2 with various percentages of SnO2, XRD analysis was carried out. X-ray diffractograms of pure ZnO, pure SnO2 and ZnO−SnO2 sprayed with different percentages of SnO2 (20, 50 and 80%) are shown in Fig. 2.

For pure oxides, pure ZnO and pure SnO2, we can see only the peaks assigned to the hexagonal structure of zinc oxide and the tetragonal phase of tin oxide according to JCPDS card Nos. (080–0074) and (001–0657), respectively. The diffraction peaks of the samples are sharp and intense, and no other phases were found in the films, confirming their high purity and crystallinity.

For the samples prepared with 20 and 50% SnO2, the predominance of the ZnO phase is evident, while tin oxide is only minimally observed, indicated by the presence of the (310) peak, which suggests that for these percentages, the SnO2 is present in an amorphous phase. Furthermore, a decrease in the intensity of the preferential peak of ZnO (002) is noteworthy.

By increasing the percentage of SnO2 from 50 to 80%, we notice the appearance of the peaks assigned to the SnO2 phase with a tetragonal structure, such as (110), (200) and (211), whereas the intensity of the preferential peak for ZnO is reduced.

Fig. 2
figure 2

XRD diffractograms of pure ZnO, pure SnO2 and ZnO−SnO2 (20%, 50, 80%) thin films.

The crystallite size (D) of the films prepared with different percentages of SnO2 was calculated from the more intense peak using the Scherrer formula51:

$$D=\frac{{0.9 \times \lambda }}{{\beta \cos (\theta )}}$$
(1)

Where λ = 1.5418 Å for Cu radiation, θ is the diffraction angle, and β is the full width at Half-maximum FWHM.

The crystallite size values for different percentages of SnO2 are given in Table 1.

We note that the crystallite size of ZnO decreases as the percentage of tin oxide increases from 61 to 11 nm, which is attributed to the presence of SnO2 that may cause an aggregation of ZnO particles. This finding is consistent with literature results reporting that the inhibition of the aggregation of ZnO increased with increasing SnO2 content52,53,54, and47. The decrease in aggregation has been reported to correlate well with higher surface areas in nanocomposite photocatalysts55. It was shown by Abdelkrim et al. and Tischner et al. that the SnO2 films exhibit uniform morphology with small crystallites56,57.

In addition to D, other parameters related to lattice stress and their variations have been calculated and are analyzed in detail in the support document. In addition, additional information on the elemental composition and its variation with increasing Sn content is available in the supplementary document.

Table 1 Crystallite size of different percentages of SnO2.

The impact of varying percentages of SnO2 on the morphology of ZnO samples is illustrated through the SEM images in Fig. 3 and the AFM images in the support document.

For the pure oxides of SnO2 and ZnO, the samples show a smooth morphology consisting of compact grains, densely packed and uniform (see Fig. 3a,b). The micrographs of the ZnO−SnO2 nanocomposites with different percentages of tin oxide revealed the presence of particles with different sizes. In particular, the sample deposited with 50% percent of tin oxide exhibits small particles, indicative of a polycrystalline film58. As the percent of tin oxide increases to 80% (Fig. 3e), the samples consisted of aggregates of particles. This can be explained by the presence of the two phases of tin and zinc oxides.

Besides, the film thicknesses were estimated by measuring the cross-section of the SEM images. As shown in Table 2, we can note that the thicknesses for different nanocomposites prepared were varied from 175 to 740 nm. The value of the thickness increases as the percentage of Sn increases in the samples, and the highest thickness value of about 740 nm was characteristic of the nanocomposite deposited with 80% of tin oxide.

The surface roughness of pure oxides (ZnO and SnO2) and the nanocomposite ZnO−SnO2 for different percentages of tin oxide were studied by Atomic force microscopy AFM. Additional details and specific surface characteristics from the AFM analysis are available in the support document.

Fig. 3
figure 3

SEM images of ZnO−SnO2 nanocomposites synthesized by varying the percentages of SnO2: (a) ZnO pure, (b) SnO2 pure, (c) SnO2 = 20%, (d) SnO2 = 50% and (e) SnO2 = 80%.

Table 2 Thickness and roughness of nanocomposites ZnO−SnO2.

Optical properties

Optical transmittance spectra of ZnO−SnO2 thin films with different percentages of tin are presented in Fig. 4.

All the spectra exhibit an abrupt absorption edge, which is characteristic of materials with direct energy band gaps. Observing the transmission spectra of the films reveals an increased occurrence of interference fringes (oscillations), which stem from a multiple reflection phenomenon between the free surface and the substrate-contacting surface. Notably, the heightened presence of these fringes suggests a higher level of homogeneity in the films prepared with varying percentages of tin oxide compared to the pure thin films of ZnO and SnO2. From Fig. 4a, we can note that the pure thin film of ZnO present a higher transmission value than the pure SnO2.

In the transmission spectra of ZnO−SnO2 nanocomposites with different percentage of Sn (Fig. 4b), it is evident that the transmittance decreases from 80% to around 70% with the increasing percentage content of Sn in the visible region. The sample Zn:Sn(80%) presents the lower transmission value of about 70%.

Fig. 4
figure 4

Transmission spectrum of Zn:Sn thin films: (a) pure ZnO and SnO2, (b) Zn:Sn(20%, 50% and 80%).

To obtain a deeper understanding of the photocatalytic properties exhibited by the ZnO series, it is essential to elucidate the energy band structure and transport characteristics of the heterogeneous semiconductor. This is crucial, as only the photo-excited charge carriers reaching the surface contribute to the generation of reactive species responsible for the degradation of dye molecules59. The optical band gap energy (\(\:{E}_{g}\)) is determined using the following relation60:

$$\:{\left(\alpha\:h\upsilon\:\right)}^{n}=A(h\upsilon\:-{E}_{g})$$
(2)

Where α is the absorption coefficient, hν is the photon energy, A is a constant, and n = 2 for an indirect allowed transition and n = 1/2 for a direct allowed transition.

Figure 5 shows the variation of (αhν)2 versus hν. The Eg values of band gap energy are determined by plotting (αhν)2 versus (hν) and by extrapolating the linear part of the curve until its intercept with the photon energy axis (Fig. 5).

In Table 3, the optical band gap values (\(\:{E}_{g}\)) of ZnO−SnO2 nanocomposites with different tin content are shown. We can see that the values of the optical band gap of pure oxides ZnO and SnO2 thin films are 3.29 and 3.71 eV, respectively. From the literature, the measured optical band gaps of ZnO thin films are reported to lie in the range (3.2–3.4 eV), and those of SnO2 thin films are reported to lie in the range (3.72–3.83 eV). Thus, we can notice that our band gaps are in agreement with those reported previously61,62.

For ZnO−SnO2 nanocomposites prepared with different content of SnO2 (Fig. 5c), the values of the optical band gap vary from 3.32 to 3.64 eV. We can observe that the bandgap energy increases with the increase of the tin content.

These relative shifts of values of band gap energy may be due to the influence of several factors such as structural parameters and lattice strain; these results confirm those discussed in the XRD results.

Fig. 5
figure 5

(αhν)2 versus hυ plots of ZnO−SnO2 thin films for different content of tin oxide: (a) Pure SnO2, (b) Pure ZnO, and (c) Zn:Sn(20%, 50% and 80%).

Table 3 Optical properties of ZnO−SnO2 thin films for different content of Tin.

The band gap is related to the appearance of band tails in material band diagrams. In this context, the Urbach energy (Eu) is estimated from the inverse slope of the linear plot between Ln(α) and hν (Fig. 6). The Urbach tail values are given in Table 3. It is evident that the Urbach energy decreases with the increase in tin content. Accordingly, the Urbach and the bandgap energy are inversely correlated.

Fig. 6
figure 6

Variation of Ln(α) with photon energy of ZnO−SnO2 thin films for different percentage of tin oxide (20%, 50% and 80%).

Photocatalytic activity

The photo-catalytic degradation of MB was studied using ZnO−SnO2 nanocomposites for different percentages of tin as photocatalysts. The organic dye presents a strong absorbance band at 660 nm. Its intensity decreases when MB degrades, and this variation in the intensity was assessed at regular time intervals.

The use of UV light in our experiments can be justified by both intrinsic properties of the SnO2–ZnO composite and environmental conditions of Tunisia. SnO2 and ZnO have a wide bandgap around 3.37 and 3.2 eV, respectively, showing that they are mainly sensitive under UV light. This high-energy UV radiation promotes better generation of electron-hole pairs and catalytic activity. Since UV and visible light are able to activate the composite, we preferred the use of UV light because it can bring more reliable activation for such high bandgap material. Natural UV radiation in Tunisia’s summer climate is rich, which makes it a practical and effective choice since the solar irradiance intensity and UV radiation comprise approximately 3–5% of the total sunlight. Due to this fact, UV light was chosen to ensure superior photocatalytic performance that will go hand in hand with the material properties and also depend on the local environmental conditions.

Figure 7 shows the degradation rate of MB after UV irradiation as a function of time achieved with ZnO−SnO2 thin films having different percentages of tin.

The photocatalytic degradation rate was determined using the following relation63:

$$\:\text{photodegradation rate \%}=\frac{{A}_{0}-A}{{A}_{0}} \times 100$$
(3)

Where A0 is the initial absorbance of the dye solution and A is the absorbance after UV irradiation.

Fig. 7
figure 7

Degradation rate of MB after UV irradiation as a function of time for pure ZnO, pure SnO2 and for ZnO−SnO2 thin films having different percentages of tin.

According to Fig. 7, all samples showed higher photocatalytic activity than the two pure oxides. This proves that the simultaneous presence of two phases resulted in a synergistic effect and improved the photocatalytic activity.

As we can see, the photocatalytic efficiency increases with the increase in the percentage of tin. Indeed, the sample ZnO−SnO2 with 80% tin exhibited the highest photocatalytic activity among the composites tested. MB degradation efficiency with Zn:Sn(80%) reached 91% after 180 min of UV irradiation, as shown in Fig. 6, and was 51% higher than that achieved with pure ZnO.

This increase in photocatalytic activity with the increase in the percentage of tin oxide can be explained by the simultaneous presence of semiconductors possessing different energy levels of their corresponding conduction and valence bands64. Besides, the generation of electron-hole pairs under UV light irradiation, which constitutes the fundamental basis of the degradation process, is influenced by multiple factors, including particle size decrease, morphology, bandgap energy, and the formation of hetero-junction composites. Consequently, the observed enhanced photodegradation rate in 80% SnO2 films may be attributed their favorable crystallinity, which results in a higher yield of electron-hole pairs.

Indeed, the structural and morphological results prove this enhancement, and the sample prepared with 80% of tin oxide exhibits the highest surface roughness (RMS) and the small crystallite size leading to an increase in the adsorption of the MB on the surface. These parameters facilitate the separation and the transfer of photogenerated charge carriers, resulting in an enhancement of photocatalytic efficiency.

Moreover, it can be observed from Fig. 8, that the degradation rate increases as the irradiation time increase. This indicates that the highest degradation of MB was obtained after 3 h of UV irradiation.

Fig. 8
figure 8

UV–vis spectra of the MB solutions at different irradiation times.

Figure 9a, shows the variation of ln (A0/A) versus irradiation time for the two pure oxides and the samples of Zn:Sn for different content of tin (20, 50 and 80%).

All curves exhibited good linear correlation. This result proved that the photodegradation of MB with Zn:Sn catalysts followed pseudo-first-order kinetics65:

$$\:\:\text{l}\text{n}\left(\frac{{A}_{0}}{A}\right)=Kt$$
(4)

Where A0 is the initial absorbance of the MB dye, A is the absorbance of the MB dye after irradiation time ‘t’ and K is the degradation rate constant.

The constants rate kinetics, K, were calculated from the slope of ln(A0/A) versus irradiation time (t) as shown in Fig. 9b.

It can be seen that the value of the rate constant increases when the percentage of tin increases, which proves that the presence of two phases, ZnO and SnO2 enhances the photocatalytic performance under ultra-violet light. Moreover, the Zn:Sn(80%) exhibited the highest reaction rate constant (K) and hence the highest photocatalytic activity.

Fig. 9
figure 9

(a) Photocatalytic degradation kinetics of MB dyes versus irradiation time. (b) The kinetic rate K as a function of tin content.

To evaluate the photocatalytic stability of the Zn:Sn(80%) sample, five consecutive cycles of MB degradation under UV light were performed (Fig. 10). A cleaning protocol of the surface was used before each cycle to ensure a reliable film recovery. Particularly, the active layer was rinsed several times with distilled water. As a result, a negligible decrease in the photocatalytic efficiency was observed after five cycles, demonstrating the outstanding stability of Zn:Sn(80%) thin films for degrading MB. From this knowable, ZnO−SnO2 (80%) sample possessed outstanding photocatalytic activity and stability.

As shown by the XRD and AFM results, the Zn:Sn(80%) present the small crystallinity size and the higher roughness. This result justifies the enhanced photoactivity of the coupled ZnO−SnO2 samples.

Fig. 10
figure 10

Recyclability of Zn:Sn(80%).

The proposed dye degradation mechanism in the presence of ZnO−SnO2 thin film is schematically detailed in Fig. 11.

It is well-known that hydroxyl radicals remove the organic contaminants from wastewater on the surface of the ZnO−SnO2 thin films. In fact, under irradiation, absorption of an efficient photon by ZnO−SnO2 produces a generation of electron-hole pairs. These charge carriers reach the surface of the catalyst; the generated electrons are absorbed by O2 molecules to form the radical anion of oxygen\(\: \text{O}_{2}^{-\cdot\:}\), while the holes are trapped by surface-bound H2O to create hydroxyl radicals\(\:\:\:\text{O}{\text{H}}^{{\cdot\:}}\). The formed radicals (\(\:\text{O}_{2}^{-\cdot\:}\)and\(\:\:\text{O}{\text{H}}^{{\cdot\:}}\)) are useful species for the degradation of the organic MB dyes.

The dye degradation mechanism of ZnO−SnO2 thin films can be described as follows:

$${\text{ZnOSnO}}_{2}+h\upsilon\:\to\:{\text{Z}\text{n}\text{O}(\text{h}}_{{\upnu\:}\text{B}}^{+})+{\text{S}\text{n}{\text{O}}_{2}(\text{e}}_{\text{C}\text{B}\:}^{-})$$
(5)
$${\text{O}}_{2}+{\text{e}}_{\text{C}\text{B}}^{-}\to\:{\text{O}}_{2}^{-{\cdot\:}}$$
(6)
$${\text{H}}_{2}\text{O}+{\text{h}}_{{\upnu\:}\text{B}}^{+}\to\:{\text{H}}^{+}+{\text{OH}}^{{\cdot\:}}$$
(7)
$${\text{M}\text{B}}_{\text{d}\text{y}\text{e}}+{\text{OH}}^{{\cdot\:}}\to\: {\text{CO}}_{2}+{\text{H}}_{2}\text{O}$$
(8)

The electrons within the conduction band of SnO2 interact with molecular oxygen adsorbed onto the SnO2 surface, leading to the formation of superoxide radical anions (\(\:\text{O}_{2}^{-\cdot\:}\)) Eq. (6). These \(\: \text{O}_{2}^{-\cdot\:}\)radicals subsequently engage with H2O, resulting in the creation of \(\:\text{OH}^{\cdot\:}\:\)radicals. Conversely, the holes that migrate to ZnO react with hydroxyl groups attached to the surface (or with H2O), generating hydroxyl radical species (\(\:\text{OH}^{\cdot\:}\)) as shown in Eq. (7). These \(\:\text{OH}^{\cdot\:}\) radicals act as highly effective oxidants, enabling the mineralization of organic compounds like MB into degradation by-products such as H2O and CO2 Eq. (8).

Fig. 11
figure 11

Dye degradation mechanism for the ZnO−SnO2 nanocomposite.

This study presents an effective approach to boost the photocatalytic efficiency of SnO2 thin films by integrating varying concentrations of Sn particles into the lattice of ZnO. This incorporation results in a heightened band gap within semiconductors, which proves advantageous for enhancing photocatalytic activity. A widened band gap signifies the semiconductor’s capability to absorb photons with greater energy (shorter wavelengths), encompassing a broader spectrum of solar radiation. This expanded absorption range augments light absorption efficiency, consequently elevating photocatalytic performance. Moreover, the adoption of the spray pyrolysis technique, deemed most suitable for thin film fabrication in photocatalytic applications, was deliberate to augment degradation kinetics owing to its structured morphology. Porous thin films, a hallmark in photocatalysis, offer increased surface area, thus optimizing active sites for reactions and amplifying efficiency. Their porous architecture facilitates efficient mass transfer kinetics while minimizing charge carrier recombination, thereby ensuring sustained activity and stability. Versatile and cost-effective, such films hold immense potential for diverse applications like water splitting and pollutant degradation, propelling advancements in photocatalytic technologies.

The comparison of our study to previous works highlights several key benefits these works are gathered with their main results in the Table 4, demonstrating the efficacy of our approach. The UV spray pyrolysis method achieved 91% degradation within 180 min, showing high repeatability compared to other methods with additional activation processes. For example, Zarei et al.66 reported a degradation rate of 70% in 240 min under UV light, while Dharmana et al.44 obtained 82.45% in 120 min under visible light. However, neither demonstrated the same stability or repeatability as our study. Our material exhibited excellent stability with less than 10% efficiency decay over six cycles, making it durable for regular use. Furthermore, other studies, such as Shama et al.69, showed lower degradation efficiency (only 55% in 125 min) compared to our material. Kumaravelan et al.70 demonstrated 90% degradation in just 90 min but did not assess repeatability over multiple cycles. In contrast, our method ensures both rapid degradation and long-term stability. Therefore, our approach provides a competitive and practical strategy with superior photocatalytic performance, reproducibility, and stability compared to previously demonstrated techniques.

Table 4 Comparison of photocatalytic degradation efficiency and key advantages of different synthesis methods for SnO2–ZnO-based materials.

Conclusions

In this paper, ZnO−SnO2 nanocomposites with different percentages of tin oxide (20, 50 and 80%) were deposited by spray pyrolysis while their photocatalytic activity was studied by photodegradation of MB as an organic pollutant under UV light irradiation.

The properties of the ZnO elaborated thin films were optimized by the incorporation SnO2 nanoparticles that was proved by different material characterisation techniques. The crystalline quality and phase composition of ZnO−SnO2 films were investigated revealing high purity and lower crystallite size for the higher Sn samples. The morphology of ZnO−SnO2 nanocomposites varies with SnO2 content, transitioning from compact grains in pure oxides to particle aggregation at higher SnO2 percentages, reflecting the coexistence of tin and zinc oxide phases. Thickness and Roughness increases with the increase of Sn percentage. The optical transmittance and band gap of ZnO−SnO2 thin films vary with SnO2 content, showing increased homogeneity, reduced transmittance, and a rising band gap with higher tin oxide percentages, consistent with structural changes and lattice strain.

The dye degradation for the pure ZnO was found to be 40% and increased up to 91% for ZnO−SnO2 (80%). This is the highest efficiency achieved all over the samples. Moreover, the Zn:Sn(80%) nanocomposite verified the high photocatalytic activity after being recycled for five MB degradation cycles.

The enhanced photoactivity was attributed to the increased charge separation resulting from the coupling of ZnO and SnO2 semiconductors with different energy levels of their conduction and valence bands. The higher roughness and the small crystallinity size are important factors to enhance the photocatalytic efficiency of the samples.

Consequently, the ZnO−SnO2 nanocomposite is a promising candidate in the treatment of industrial wastewater to reduce organic pollutants.

Further studies are needed to verify the stability of the films after the photocatalytic process by analyzing their structural and morphological properties. Additionally, the optimized sample could achieve higher degradation efficiency and stability by being decorated with 2D materials, such as graphene oxide. This will be the subject of future research.