1 Introduction

Water is most vital for human beings and due to industrialization and urbanization water quality has been deteriorated thus causing negative impacts on humans and other living organisms. Agriculture, food production as well as economy is also affected by low water quality. Many industries such as paper and printing, lather, textile and cosmetics give organic dyes and pigments to the water bodies and thus render unfit for drinking and other uses [1]. The dyes are colored compounds that prevent sunlight penetration into the water stream, consequently reducing the photosynthetic reactions. Most of the dyes are threat to human beings and animals even cause malignant neoplastic disease [2]. Methylene blue (MB) is one of the industrial dyes that is highly detrimental to the ecosystem, animals and human beings [3]. Various techniques like ozonization, chemical coagulation, oxidation, electrolysis and biodegradation have been used to remove dyes from wastewater. However, these methods are unable to reduce the concentration of the contaminants to the desired levels [4]. Advanced oxidation process (AOP) is an emerging technique that use hydroxyl radicals (HO·) formation, which exhibits strong oxidation capacity (E0 = 2.76 V) leading to the complete mineralization of organic pollutants. These methods including Fenton (Fe2+  + H2O2), photo-Fenton (solar light + Fenton), ozone (O3), sonolysis (ultrasounds), electrolysis (electrodes + current), photolysis (UV + H2O2) and photocatalysis (light + catalyst) offers no further requirement for secondary disposal [5,6,7].

Absorption of photons with energy larger than the band gap of a photo catalyst, second the generation, separation, migration or recombination of electron–hole pairs and finally the redox reactions occurring at the photo catalyst surface are the three steps that are involved in photo catalysis [8].

Due to an empty conduction band and crammed valence band conducting metals (such as ZnO, Fe2O3, CdS, and ZnS) can act as sensitizers for light-induced redox-processes [9]. As compared to metal oxides sulfidation of metals has been proven to suppress reactions with water and improve the reactivity and selectivity for organics pollutants. A combination of hydrophobicity and enhanced electron transfer is touted as the main benefit of metals sulfidation, and this was recently confirmed using electrochemical tests and water contact angle measurements [10]. However, these characterizations are both bulk analyses, so it is unclear if the reactive sites are metal or S sites and how sulfur affects the charge density distribution of metal at an atomistic level. However metal sulphide afford the hydrogen evolution reaction (HER) in water, [11] which involves the generation of atomic H (Volmer reaction) via electron transfer from the materials to water and its subsequent combination to form H2 (Tafel or Heyrovsky reaction) on a metal surface. Although previous studies have shown that H2, atomic H, and direct electron transfer are all capable of degrading pollutants [12]. Cadmium sulfide (CdS) has promising applications in photoluminescent, electroluminescent and photoconductive devices due to having a narrow band gap of 2.42 eV [13]. Owing to their unique physicochemical properties such as good permeability, high specific surface area and special optical/electrical/magnetic properties, CdS has received particular attention in recent years [14]. Keeping in view the hazards associated with dyes in the aqueous system and importance of CdS nanomaterials a study was designed to synthesize and characterized CdS nanoparticles. Kinetic and thermodynamic study of the effects of various parameters on photo degradation was also the aims of the present study.

2 Experimental

2.1 Apparatus

UV–visible spectrophotometer Model Shimadzu UV-1800, Japan was used for all absorbance measurements. Perkin Elmer FTIR spectrometer version 10.4.00 was used for identification of the functional groups. For pH measurements, Elico (model IL-610) digital pH meter was used. TGA analysis was performed with Shimadzu TGA-50/50H. All the analysis were performed in Advance Research Lab (ARL) Department of Chemistry Bacha Khan University Charsadda. XRD, SEM and EDX analysis of the synthesized materials were carried out in Quaid-i-Azam University Islamabad.

2.2 Synthesis of CdS Nanoparticles

CdS NPs were synthesized through hydrothermal method. In this typical synthesis 15 mL (0.1 M) of each Cd (NO3)2·4H2O (cadmium nitrate) and Na2S·9H2O (sodium sulfide)solutions were taken in a beaker. The mixed solution was stirred at room temperature for about 10 min. Then the mixture was transferred to 50 ml autoclave and was placed in a muffle furnace for 14 h at 200 °C. After heating the reaction mixture, it was centrifuged and washed four times with water. The final product was dried at 50 °C for 5 h. Fig. 1 is the schematic diagram for the synthesis of CdS NPs.

Fig. 1
figure 1

Flow sheet diagram for the synthesis of CdS nanoparticles

2.3 Preparation of the Dye Solution

Stock solution (500 ppm) of methylene blue dye was prepared in distilled water. Using dilution formula given in Eq. (1), the working solutions of different concentration were prepared accordingly.

$${\text{M}}_{{1}} {\text{V}}_{{1}} = {\text{M}}_{{2}} {\text{V}}_{{2}}$$
(1)

2.4 Photocatalytic Degradation of the Dye

The activity of CdS nanoparticles was evaluated in the degradation of methylene blue in aqueous solution. The degradation was carried out in UV-light. The λmax of methylene blue was 668 nm and this was used as a monitor wavelength for photo degradation.

Upon addition of an appropriate amount of photo catalyst (CdS, NPs) the dye solution was stirred for 30 min in the dark to establish adsorption/desorption equilibrium before the photo degradation reaction. During experiments in locally designed equipment the light source (UV-light) was placed 15 cm away from the surface of the solution. The catalyst was removed by centrifugation and the dye degradation was checked at various interval of time using UV–visible spectrometer. Percent degradation of the dye was calculated using the following relation (Eq. 2)

$$D(\% ) = \frac{{C_{0} - C_{t} }}{{C_{0} }} \times 100,$$
(2)

where C0 and Ct represents concentrations of MB at time 0 mint and t (s) respectively.

3 Results and Discussion

3.1 UV–Visible Spectroscopic Studies

UV–Vis spectroscopy was performed to observe the maximum absorbance of CdS nanoparticles. The wavelength was employed in the range of 200–800 nm. CdS NPs showed maximum absorbance at 496 nm as shown in Fig. 2 and the band gap was calculated by using Tauc plot given in Eq. 3.

$$\left( {\upalpha {\text{h}}\upsilon } \right)^{{{1}/{\text{n}}}} = \upbeta \left( {{\text{h}}\upsilon \, - {\text{ Eg}}} \right),$$
(3)

where “α” represent the absorption coefficient, “hυ” is the photon energy, “Eg” show the band gap and value of “n” depends on transition involved where n can have values 1/2, 2, 3/2, 3 related to direct allowed, indirect allowed, direct forbidden and indirect forbidden transitions respectively. CdS nanoparticles show direct allowed transitions[15]. To calculate the value of band gap, graph was plotted (αhυ)2 vs hυ and the straight line obtained was extrapolated to zero absorption co-efficient so that it encountered the x-axis. The band gap value (Fig. 3) of CdS was found to be 2.38 eV.

Fig. 2
figure 2

UV–Vis spectrum of CdS nanoparticles

Fig. 3
figure 3

Tauc plot of of CdS nanoparticles

3.2 XRD Studies

X-rays diffraction powder analysis was carried out to investigate the crystallinity, crystallite size, and phase of nanoparticles. There is no extra peak which indicates the purity of the synthesized NPs [16]. XRD pattern (Fig. 4) showed the hexagonal pattern of CdS. The diffraction peaks were observed at 24.840°, 26.370°, 30.47°, 43.79°, 51.87°, 54.32°, 63.62°, 70.17° and 72.36° at 2θ and indexed to be characteristic 100, 002, 101, 102, 110, 103, 112 and 211 respectively for CdS NPs similar to JCPDS card no # 00-041-1049.

Fig. 4
figure 4

XRD pattern of CdS nanoparticles

3.3 FTIR Studies

FTIR spectroscopy was used to confirm the purity and to investigate the functional groups of precursors or any other impurities. FTIR spectra were obtained in the range of 500–4000 cm−1. In Fig. 5, the peak at 400–700 cm−1 corresponds to the metal-sulfur bond. The peak at 630.33 cm−1 corresponds to Cd-S bonding mode and reveals the formation of CdS nanoparticles. The broad peak observed at 3350.67 cm−1 was assigned to O–H (hydroxyl group) present because of the moisture absorbed by the CdS NPs. Symmetric C≡C bond mode was observed at 2110.32 cm−1 and peak at 1633.54 cm−1 was due to asymmetric stretching of C=C bond representing the presence of traces of organic impurities[17].

Fig. 5
figure 5

FTIR spectrum of CdS nanoparticles

3.4 SEM and EDX Studies

The SEM image shown in Fig. 6 with 500 nm magnifications indicates the formation and shape (morphology) of nanoparticles. The grains of particles have aggregated to form just like clusters. The CdS NPs was obtained as fine and uniform particles which produce crystalline aggregates [18]. Energy dispersive X-rays spectroscopy (EDX) was performed for the elemental composition of CdS NPs are shown in Fig. 7. The EDX spectra reveal the presence of Cd and S as major elements in synthetic material and provide the quantitative analysis of weight percentage of compositional elements.

Fig. 6
figure 6

Scanning electron microscopic image of CdS nanoparticles

Fig. 7
figure 7

Energy dispersive X-rays spectrum of CdS nanoparticles

3.5 Thermo Gravimetric Analysis (TGA) of CdS Nanoparticles

TGA was used to study thermal behavior of the prepared CdS. Formation of nano structured materials depends upon temperature and temperature-induced phase changes are significant for the utility of these NPs for various applications [19]. The TGA was carried out under N2 atmosphere in the temperature range of 25–600 °C at heating rate of a 10 °C min−1. TGA curve of the sample shown in Fig. 8 exhibits that the sample was quite stable to temperature. The weight loss of CdS from 40 to 250 °C, was 4.89% which is due to the presence of water and moisture content present in sample. The weight loss after 250 °C that is mainly assigned to the degradation of the nanomaterials was only 1.65%. The TGA study indicated that the synthesized CdS nanomaterials were much stable to temperature and the total loss occur for 25–600 °C was only 6.54%.

Fig. 8
figure 8

TGA curve of CdS a weight loss in mg and b weight loss in percentage

3.6 Photo Degradation Study of Methylene Blue Dye

In the present study CdS NPs were used as photo catalysts for the degradation of methylene blue dye. The following mathematical pseudo first order kinetic model (Eq. 4) was applied to estimate the kinetics of photo degradation of methylene blue dye.

$$- {\text{dC}}/{\text{dt}} = {\text{ k}}_{{{\text{APP}}}} {\text{C,}}$$
(4)

where kApp denotes rate constant of reaction. The integrated form of the above equation is as

$${\text{ln}}\left( {{\text{Co}}/{\text{C}}} \right) = {\text{k}}_{{{\text{APP}}}} .{\text{ t,}}$$
(5)

where Co and C represents initial and final degradation of the dye respectively.

Figure 9a, b represent the kinetic analysis for the photo degradation of methylene blue dye. As evident from the Fig. 10 the speed of photo catalytic reaction is powerfully affected by the catalyst identity. The values of kApp and correlation coefficient of the pseudo first and second order for the photo degradation reaction of methylene blue dye over CdS NPs are given in Table 1. These kinetic parameters clearly shows that dye interaction with CdS NPs greatly affect catalytic performance. The following pseudo second-order kinetic model (Eq. 6) was applied for the estimation of order of photo degradation of methylene blue over CdS

$$\frac{1}{{\text{C}}} - \frac{1}{{{\text{C}}_{{\text{o}}} }} = {\text{k}}_{{{\text{APP}}}} \cdot{\text{t}}{.}$$
(6)
Fig. 9
figure 9

a Application of pseudo first-order kinetics and b pseudo second order kinetics to methylene blue dye degradation on CdS NPs at various temperature

Table 1 Correlation coefficient along with their kApp of the pseudo first and second-order photo degradation reaction of methylene blue dye over CdS NPs

From the plot it is evident the experimental data best fits the second order model. So the degradation of methylene blue over CdS nanocatalyst follows second order kinetics.

The activation energy of the reaction was calculated using Arrhenius Eq. (7)

$$_{{{\text{K}} = {\text{Ae}}}} \frac{ - Ea}{{RT}},$$
(7)

where Ea represent activation energy and k represent the rate constant. Logarithmic form of the this equation is the following Eq. (8)

$${\text{lnk }} = {\text{ lnA}} - \frac{{{\text{Ea}}}}{{{\text{RT}}}}.$$
(8)

Plotting lnk vs 1/T a straight line is obtained with a negative slope Ea/R given in Fig. 10. From the given plot the calculated activation energy came out to be 9.043 kJ mol−1 as revealed in Table 1.

Fig. 10
figure 10

Plot of Arrhenius equation for the rate constant (kApp) of methylene blue dye degradation on CdS NPs

The effect of dye concentration on the rate of reaction was also studied. A varying concentration (between 10 and 25 mg L−1) of the dye was used. First order and second order rate constant equations were applied to the experimental data for getting apparent rate constants. The plots are shown in Fig. 11a, b. The calculated values of rate constants along with their respective regression coefficients are given in Table 2.

Fig. 11
figure 11

a Application of pseudo first-order kinetics and b pseudo second order kinetics to methylene blue dye degradation on CdS NPs at various initial concentration

Table 2 Kinetic constant parameter values for the photo catalytic degradation at different initial concentration of dye

From the data given in Table 2 it is evident that catalytic performance is enhanced with CdS NPs and the experimental data best fits the second order kinetics model.

3.7 Mechanism of Photo Catalytic Degradation of Methylene Blue Dye

Photo catalysis usually involves photo-absorption and photo-excitation of electrons from valence band (VB) to the conduction band (CB) of a semiconductor material. Electron–hole formation (Eq. 9), their transfer across the valence, conduction and forbidden energy bands and their recombination has been reported in the photocatalysis on the bases of band gap theory [20].

Upon absorption of higher energy photon an electron is promoted from the VB to the CB (e) of CdS with simultaneous generation of a hole (h+) in the VB. The electrons and holes recombine in the bulk or surface of the particle in a few nano seconds. Trapped energy in the surface sites can react with donor (D) or acceptor (A) species adsorbed or close to the surface of the particle. OH.− radicals are generated when h+ in VB react with water molecule (Eq. 10) and O2 radicals are form by the reaction of electron in CB react with dissolved O2 molecule (Eq. 11). Complete conversion of an organic substrate to CO2 and H2O is carried out by the oxidative pathway as also evident from the mechanism given in Fig. 12 [21].

$${\text{CdS }} + {\text{ h}}\upnu \, \left( {{\text{light}}} \right) \, \to {\text{ e}}^{ - } + {\text{ h}}^{ + }$$
(9)
$${\text{h}}^{ + } + {\text{ H}}_{{2}} {\text{O}} \to^{ \cdot } {\text{OH }} + {\text{ H}}^{ + }$$
(10)
$${\text{e}}^{ - } + {\text{ O}}_{{2}} \to^{ \cdot } {\text{O}}_{{2}}^{ - }$$
(11)
$${\text{OH}} + {\text{dye molecules}} \to {\text{degraded products}}$$
$${\text{O}}_{{2}}^{ - } + {\text{dye molecules }} \to {\text{ degraded products}}{.}$$
Fig. 12
figure 12

Mechanism of possible photo catalytic degradation of methylene blue dye

3.8 Effect of Time and Concentration on Dye Degradation

Irradiating under UV light 10, 15, 20 and 25 ppm concentration of dye upon addition of 0.03 g of photocatalyst (CdS) the changes in percent degradation of MB dye different time intervals are shown in Fig. 13. It is evident from the plots that degradation increases with increase in time duration. The photo degradation efficiency of CdS for degradation at each experimental concentration of MB after a time interval of 160 min was found to be 93.8%, 77%, 72% and 59% respectively. Due to more active sites for MB molecules to be adsorbed on the surface of CdS photo-catalyst the data indicated that degradation is higher at lower concentration. With increase in concentration of dye the number of dye molecules adsorbed on catalyst surface increases. Owing to this high concentration of the molecules needed to absorb light photons and to subsequently reach the catalyst surface decreases and lead to reduction in efficiency of photo catalyst [22, 23]. Thus better degradation of MB dye was achieved at 10 ppm.

Fig. 13
figure 13

Effect of CdS NPs on methylene blue dye degradation at various initial concentration

3.9 Effect of Temperature on Dye Degradation

The effect of temperature on methylene blue degradation in aqueous solutions in the presence of CdS was studied at various temperatures i.e. 20, 30 and 40 °C the plot is given in Fig. 14. An increase in percent degradation of MB dye was observed with increase in temperature. Percent degradation for each temperature calculated was 55, 89 and 93 respectively. In the present work it was recorded that rise in temperature not only increased percent degradation, but also the rate of reaction. This phenomenon might be explained in term of ·OH generation as a function of temperature. It was suggested that the rise in temperature accelerates the reaction between H2O and CdS, hence the generation of oxidizing species like ·OH radical become improved [24, 25].

Fig. 14
figure 14

Effect of CdS NPs on methylene blue dye degradation at different temperature

3.10 Effect of Photo Catalyst Dosage on Dye Degradation

By changing the catalysts CdS mass from 0.01 to 0.05 g for 140 min illumination under UV light the effect of the catalyst dose on the dye degradation was investigated as shown in Fig. 15a, b. The percent degradation calculated for each dose is also given in Table 3. With increase in CdS photo catalyst mass from 0.01 to 0.03 g an increase in dye degradation was observed. The increase in mass of the catalyst contributed to an increased surface resulting in more photons received at the surface of catalysts. The degradation of dye was 89% using 0.01 g of the catalyst which got increased to 96% at 0.03 g. By further increasing the photo catalyst mass a slight decline in percent degradation of MB was observed i.e. at 0.05 g the percent degradation decreased to 91%. This can be attributed to the fact that with increase in catalyst loading the number of active sites may increases but the penetration of light decreases due to shielding effect as well as owing to deactivation of activated molecules by collision with ground state catalysts reduces the rate of reaction [26].

Fig. 15
figure 15

Percent degradation of methylene blue dye using different mass of CdS NPs. b UV visible spectra at different catalyst dosage

Table 3 Photo catalytic degradation of methylene blue dye at different amount of CdS NPs

3.11 Effect of pH on dye degradation

During the degradation process the electrostatic interaction between substrates, catalyst surfaces and radicals is determined by the pH of wastewater containing dye. Surface charge and aggregation of the catalysts is also affected by pH [27]. The effect of pH of the medium on the photo catalytic degradation of methylene blue was investigated by carrying out the experiment at pH range of 4–9 while keeping other parameters constant. As evident from Fig. 16 and Table 4 a gentle rise in the reaction rate was observed when pH increased from 3 to 9. This confirms the sensitivity of MB dye degradation to the pH of the reaction mixture. This can be attributed to the fact that pH not only influences the surface state of catalyst but also ionization state of ionizable organic molecules. Thus the pH of the solution directly influences heterogeneous photo catalytic process. In basic medium the high degradation of MB dye might be due to the enhanced formation of hydroxyl radicals. The principal oxidizing species at high pH conditions are hydroxyl radicals which are responsible for degradation of organic dye [28]. Conversely in acidic conditions CdS particles agglomerate, leading to a reduced exposed surface area to the energy source (UV-light) [29]. Electrostatic attraction between dye molecules and the surface of CdS is promoted in alkaline pH, this is why high photo catalytic degradation of MB was achieved at pH 9 [30].

Fig. 16
figure 16

a Percent degradation of methylene blue dye at different pH. b UV visible spectra at different pH

Table 4 Percent degradation of methylene blue dye at different pH

3.12 Catalyst Stability Study

In large-scale processes the stability of photo catalyst is important that’s why the recyclability and stability of the CdS photo catalyst was also investigated through the degradation of MB under UV light. Through centrifugation the catalyst was recycled and then washing with ethanol followed by twice with deionized water and drying at 50 °C for 30 min without any additional treatment and was then reused for subsequent degradation. Figure 17 and Table 5 depicts slight decline in the efficiency of recovered catalyst as compare to the original, which may be attributed to deactivation of the catalyst in the cycling experiment and little loss. The catalyst could be stated to have high stability and durability [31].

Fig. 17
figure 17

a Percent degradation of methylene blue dye on recycled CdS NPs. b UV visible spectra at different time interval

Table 5 Percent degradation of methylene blue dye using recycled CdS NPs

4 Conclusions

The successfully synthesized CdS through hydrothermal route have a band gap of 2.38 eV. The particles were aggregated to form clusters with crystalline hexagonal structures. CdS nanoparticles were found to be very stable to temperature as a small loss (6.54%) in weight occurred during heating 25–600°C.About 94% dye degradation was noticed at 160 min time duration. The dye degradation was found to decrease with increase in the initial concentration of dye. Increasing the temperature up to 40 °C and pH up to 9 of the medium the degradation was found to increase. The degradation of MB over CdS catalyst surface follows second order kinetics. The calculated activation energy of the photo catalysis was 9.043 kJ mol−1. The recyclability study showed that the CdS are stable and durable nanoparticles.