Introduction

The contamination of freshwater resources by anthropogenic activities has continued to increase globally despite several environmental awareness and campaigns. Stringent guideline values have been adopted by several countries due to the impact of environmental contaminants. A notable group of chemicals that have a great impact on freshwater systems and the aquatic biota are dyes.

There is a growing demand for more colored products in the textile and leather industries due to the aesthetic value they add to various products. Most dyes are highly resistant to the action of alkalis, acids and water, thus highlighting their environmental persistence as well as resistance to degradation (Harja et al. 2020; Manzoor et al. 2022). Unlike metal and non-metal contamination, a little amount of dye can significantly affect the aesthetic quality of water, thus increasing the biochemical and chemical oxygen demands of those water bodies. They have the capacity to affect photosynthesis and inhibit plant growth (Berradi et al. 2019; Jeyavishnu and Alagesan 2020). Dyes have bio-accumulative tendencies and can enter the food chain causing several disease burdens both to plants and animals.

There are natural and synthetic dyes. Natural dyes are often derived from plants and animals, but because of high demand, dyes are made commercially via synthesis from precursor elements (from minerals). Dyes are often used in the textile, pulp and paper industries, photographic, ink, food and cosmetic industries as well as the plastic and leather industries (Edokpayi et al. 2020; Jegede et al. 2021). A common example of a synthetic dye is Congo Red (CR), which is an azo dye and is utilized extensively in the industry due to its exceptional efficiency. There is, however, a serious concern about the damaging impact it has on the environment (Sarkar et al. 2017; Edokpayi et al. 2019; Manzoor et al. 2022). Studies have revealed that CR can degrade into aromatic amines, a class of substance that is very toxic to the environment and has carcinogenic and mutagenic effects on humans (Sarkar et al. 2017; Harja et al. 2020).

Several techniques such as physical, chemical and biological techniques have been used for the decontamination of dyes from environmental media with varying degree of success (Mohebali et al. 2019; Javid et al. 2020). The success of these techniques frequently depends on the type of dye contained in wastewater; therefore, their specific use may be constrained (Zaharia and Suteu 2009; Singh et al. 2020). Further constraints of these techniques include the high budget and poor regeneration potential (Farias et al. 2017; Edokpayi and Makete 2021).

Sorption techniques using agricultural waste have been explored as a low-cost, environmentally abundant and friendly means of sequesting hazardous dyes from various environmental media. Their physical and chemical traits including functional charges of their cellulose, hemicellulose and lignin contents favor their ability to effectively bind a variety of contaminants, including dyes (Yagub et al. 2014; Edokpayi and Makete 2021). Modification of the plant biomass has been reported to achieve improved dyes sequestration at shorter time (Jegede et al. 2021). Among them include coffee waste for the removal of Reactive Black 5 and Congo Red (Wong et al. 2020), pine tree leaf biomass for the removal of Methylene Blue (Sen 2023), and anchote peel for the removal of methyl orange (Hambisa et al. 2023).

Dicerocaryum Eriocarpum (DE) is a constantly available flora with a pointed stud which is commonly found in grassland fields (Mannzhi and Edokpayi 2023). On exposure to water, the plant parts such as leaves, flowers and stem become slimy and parts of the plant have been used for medicinal purposes in Vhembe District, South Africa (Odiyo et al. 2017). To the best of the authors' knowledge, Dicerocaryum Eriocarpum seed has not been researched for the removal dye despite qualifying as an affordable and ecofriendly material.

In this study, we report the use of (DE) seeds as an sorbent to remove toxic dye from aqueous solutions. The effect of modification of DE using citric acid (CA) on the sorption process is also reported. Furthermore, the influence of change in water chemistry and application of both sorbents on a wide variety of dyes is also reported.

Materials and methods

Sample collection, preparation and modification

DE plants were collected from villages around the University of Venda, Limpopo Province, South Africa. The seeds were manually sorted, washed in distilled water to eliminate clinging contaminants and dried for 72 h at 50 °C in the oven. The dried seeds (RDE) were ground in a Retsch RS 200 pulverizer and sieved in a King-test VB 200/300 sieve shaker.

The procedure for the modification of RDE followed closely those reported by Yan et al. (2018) and Zhang et al. (2019). Ten grams of RDE was added to 100 mL of 0.5 M CA in a 250-mL shaking container. For 90 min, the mixture was agitated in a water bath at 250 rpm. The mixture was then put into a stainless steel pan and dried for 24 h at 50 °C in an oven. Following that, the oven's temperature was increased to 120 °C for 90 min to facilitate a thermochemical interaction between the acid and the RDE. To eliminate excess CA, the dry material was soaked in distilled water and repeatedly washed until no turbidity was visibly observed as confirmation that the excess CA had been removed. The resulting material was dried for 48 h in an oven at 50 °C and was then left to cool, after which it was crushed and stored in an airtight container. The modified DE powder was labeled CDE.

Preparation dye solution

The CR dye (analytical grade) was acquired from Fisher Scientific, USA. In 1000-mL volumetric flask, 1 g of CR dye was dissolved in deionized water to make a dye stock solution. A known concentration of the stock solution was diluted with the right volume of deionized water to make various working test solutions of the desired concentrations. The wavelength of maximum absorption was determined to be 496 nm using a UV–Vis Spectrophotometer.

Characterization of the adsorbent

The functional groups responsible for the characteristics of the sorbents before and after sorption were examined using a PerkinElmer 100 FTIR spectrophotometer (Waltham, MA, USA). To collect bands relevant to the sample, the spectroscopic spectra were scanned over the wavelength range of 4000–500 cm−1 (Ologundudu et al. 2016).

An energy-dispersive X-ray spectrometer (EDS) instrument in conjunction with a scanning electron microscope (SEM) (TESCAN, VEGA 3 SBU, Brno, Czech Republic) was used to analyze the surface morphology and elemental composition of sorbents before and after CR dye sorption adhering to the method described by Edokpayi et al. (2015). Using a Tristar II Micromeritrics (USA) analyzer, the Brunauer, Emmet and Teller (BET) Technique was used to analyze the texture of the powdered sorbent. Samples were degassed overnight at 50 °C in a vacuum (Brunauer et al. 1938). Using nitrogen gas at 77 K, the surface area, total pore volume and average pore diameter were determined. With the help of a t-plot and the Barrett–Joyner–Halenda (BJH) model (Barrett et al. 1951), the distribution of pore size and pore volume was estimated (Lippens and De Boer 1965).

Determination of point of zero charge (PZC)

The point of zero charge indicates the pH where the sorbent surface is neutral. To perform this test, 40 mL of 0.01 M NaCl solution (99.5%) was placed into seven bottles and the initial pH (pHo) was determined using a pH meter. The pHo values were adjusted to pH in the range of 2–10 in all the containers with 0.1 M HCl (37%) and 0.1 M NaOH (99%) solution, respectively. Each bottle received 0.15 g of sorbent, which was added before being shaken in a water bath at 30 °C for 24 h. The PZC was computed by plotting changes in pH values versus the initial pH value. The point of intersection on the x-axis where pHf = pHo is known as the PZC of the sorbent.

Sorption studies

Batch equilibrium experiments were performed in this study. For each sorption test, 0.05, 0.10 and 0.15 g masses of the sorbent were each added to 40 mL of CR dye solution (40 mg/L) in a 100-mL shaking bottles. The sample was shaken in an Ecobath Labotech water bath shaker at a temperature of 30 °C and an agitation speed of 200 rpm. The samples were taken out of the shaker at various intervals and centrifuged for 10 min at 2800 rpm. A UV–visible spectrophotometer operating at a wavelength of 496 nm was used to estimate the final concentration of the supernatant. The effects of experimental variables such as contact time (5–180 min), sorbent dosage (0.5–5.0 g/L), sorbate concentration (40, 60, 80 mg/L), temperature (30–80 °C) and pH (2–10) on the sorption were examined. The experiments were conducted in triplicate.

To test the effects of change in water chemistry, surface water drawn from the Mutale River in South Africa was used. Here, the effectiveness of removing CR dye was compared to an experiment using deionized water. To evaluate how well the sorbents work with different kinds of dyes, other dyes such as Rhodamine B, Methylene blue, Methylene orange, Crystal Violet and Malachite green were also tested to determine the removal effectiveness.

After every batch experiment, the amount of sorption qe (mg/g) was calculated using Eq. (1) (Edokpayi and Makete 2021):

$${\text{Quantity}}\;{\text{sorbed }}\left( {{\text{mg}}/{\text{g}}} \right) \, = \frac{{\left( {C_{{\text{o}}} - C_{{\text{e}}} } \right)}}{m} \times V$$
(1)

where Co (mg/L) is the initial concentration of the dye, Ce (mg/L) is the equilibrium liquid phase concentration of the sorbate, V (L) is the volume of the solution and m (g) is the mass of sorbent.

The percentage removal of the dye was computed using the relation in Eq. (2):

$${\text{ Percentage}}\;{\text{removal}} = \frac{{\left( {C_{{\text{o}}} - C_{{\text{f}}} } \right)}}{{C_{{\text{o}}} }} \times \, 100$$
(2)

where Co and Cf (mg/L) are the initial and final concentrations of the dye solution.

Adsorption kinetics

Kinetic models such as the pseudo-first-order, pseudo-second-order and intra-particle diffusion models were used to investigate the mechanism and rate at which CR is sorbed onto the sorbents. The linear forms of the kinetic models (Eqs. 3 and 4) were used in this study (Lagergren 1898; Ho and Mckay 1998):

$${\text{log }}\left( {q_{{\text{e}}} {-} \, q_{{\text{t}}} } \right) \, = \, log \, q_{{\text{e}}} {-}\left( {\frac{{k_{1} t}}{2.303}} \right)$$
(3)
$$\frac{t}{{q_{{\text{t}}} }} = \frac{1}{{k_{2} q_{{\text{e}}}^{2} }} + \frac{t}{{q_{{\text{e}}} }}$$
(4)

where k1 and k2 are the rate constants of the pseudo-first- and pseudo-second-order models. qe and qt are the amounts of CR sorbed at equilibrium a at a specific time t, respectively.

The linear expression of the intra-particle diffusion mod is given by Eq. (5):

$$q_{{\text{t}}} = \, k_{{\text{p}}} t^{0.5} + \, C$$
(5)

where kp is the intra-particle diffusion rate constant (mg/g min), C is the intercept (mg/L) and qt is the amount of dye sorbed (mg/g) at time t (min) (Webber and Morris 1963).

Additionally, this model is utilized to handle experimental data that were obtained by the plot of qe against t0.5. The graph's slope and intercept was used to calculate the values of Kp and C. It is presumed that internal diffusion is the only rate-limiting phase in the reaction if the plot intercepts at the origin (Lin et al. 2020). The intercept provides information about the boundary layer's thickness. The thickness increases with increasing C values (Corda and Kini 2018). The intra-particle rate constant is the computed value of the slope of the linear plot.

Adsorption isotherms

The linearized forms of the Langmuir, Freundlich and Temkin adsorption isotherm models were used to examine the equilibrium data obtained. The linear form of the Langmuir model is presented in Eq. 6

$$\frac{1}{{q_{{\text{e}}} }} = \frac{1}{{q_{\max } }} + \left( {\frac{1}{{ K_{{\text{L}}} q_{\max } }}} \right)\frac{1}{{C_{{\text{e}}} }}$$
(6)

where qmax is the amount of dye sorbed to the highest possible level (in mg/g) and KL is the Langmuir constant (in L/mg) (Langmuir 1916). qe and Ce were as described in Eq. 4. The qmax and KL were determined from the intercept and slope of the plot, respectively. Equation (7) was used to assess the sorption process' adherence to the Langmuir model:

$$R_{{{\text{L}} }} = \frac{{1}}{{\left( {{1 + }K_{{\text{L}}} C_{{\text{o}}} } \right)}}$$
(7)

where KL is the Langmuir constant (in L/mg). RL > 1 denotes an unfavorable situation, RL = 1 denotes a linear situation, 0 < RL < 1 denotes a favorable situation, and RL = 0 denotes an irreversible monolayer sorption process (Edokpayi et al. 2015; Inyinbor et al. 2015).

Equation (8) expresses the Freundlich isotherm model, which explains a multi-site adsorption for heterogeneous surfaces (Freundlich, 1906).

$${\text{log}}\;q_{{\text{e}}} = {\text{ log}}\;K_{{\text{F}}} + {\text{ log}}\;C_{{\text{e}}}$$
(8)

where KF is the sorption capacity (L/mg), \(\frac{{1}}{n}{ }\;{\text{refers}}\;{\text{to}}\;{\text{the}}\;{\text{sorption}}\;{\text{intensity, }}\) qe and Ce are as described in Eq. 4. From a linear plot of log qe against log Ce, the slope and intercept of the graph can be used to deduce the constants n and KF. A favorable sorption process is also indicated by the value of n > 1.

Temkin isotherm assumes that the heat of sorption of dye molecules on the surface of the sorbent decreases linearly rather than logarithmically as stated by Freundlich's formula (Temkin and Pyzhev 1940). Equation (9) represents the Temkin model in linear form.

$$q_{{\text{e}}} = \, B_{1} {\text{In}}K_{{\text{T}}} + \, B_{1} {\text{In}}C_{{\text{e}}}$$
(9)

B1 is the Temkin constant; KT represents the equilibrium binding constant (Lm g−1) and is determinable from the slope and intercept of qe vs. In Ce.

Thermodynamics of sorption

The change in both enthalpy (ΔH) and entropy (ΔS) of the sorption process was examined using the Van’t off plot (Eq. 10) (Van’t Hoff 1884). The enthalpy and entropy were determined from the slope and intercept derived from the plot of InKo vs 1/T.

$${\text{In}}K_{{\text{o}}} = \frac{{\Delta S^{{\text{o}}} }}{R} - \frac{{\Delta H^{{\text{o}}} }}{{{\text{RT}}}}$$
(10)

where Ko is the equilibrium constant, R the gas constant while T is the temperature.

The feasibility and spontaneity of the process were computed using Eq. 11.

$$\Delta G^\circ \, = - RT{\text{ ln}}K_{{\text{o}}}$$
(11)

where ΔG° is the changed in Gibb’s free energy.

Desorption study/regeneration

Desorption research is crucial, especially when re-using a sorbent, and the environmentally acceptable disposal means of a used sorbent is dependent on certain factors. This results in practical, cost-effective, wastewater treatment which helps to avoid sludge build-up and reduces environmental contamination. Desorption was carried out based on the procedure described in Edokpayi et al. (2015). 0.15 g of sorbent was added to three 100-mL shaker bottles that contained 40 mg/L CR solution as part of a desorption experiment. These were shaken for 90 min at 200 rpm in an eco-bath shaker with the temperature set at 30 °C. After the allotted time had passed, the expended sorbents were retrieved and thoroughly cleaned with distilled water to remove any remaining color. Deionized water, 0.1 M HCl (37%) and 0.1 M NaOH (99%) were used as possible desorbing agent. Each 100-mL shaker bottle containing the used sorbent received 40 mL of the desorbing agents, which were then mixed for 90 min at a speed of 200 rpm at 30 °C. Following centrifugation, the supernatant was examined to ascertain the final concentration of the solution following desorption. Equation 12 was used to compute the percentage desorption.

$${\text{Desorption }}\% \, = \frac{{\text{Desorbed dye concentration}}}{{\text{Initial adsorbed dye concentration}}} \times \, 100$$
(12)

Results and discussion

1: Sorbents characterization

Fourier transform infrared spectroscopy (FTIR)

In the modified sorbent (CDE), a broad peak was recorded at 3325 cm−1 which corresponds to the presence of O–H stretch of the alcohol group (Fig. 1). A similar peak at 3323 cm−1 was also recorded for the RDE as noticed by Mannzhi and Edokpayi (2023). CH-stretch of aliphatic group was recorded for both sorbents around 2845–2913 cm−1 and 2841–2937 cm−1, respectively (Wong et al. 2020). The peak recorded at 1019 cm−1 (RDE) and 1026 cm−1 (CDE) can be attributed to C–O stretch of the carboxylate groups. CDE spectra evidently did not differ significantly from raw RDE except for a shift in peak to higher absorbance levels and the emergence of new peaks at 2913 and 2845 cm−1 assigned to C–H stretch of alkane/aliphatic group, as well as 1621 and 1589 cm−1 assigned to C=C stretch of ester and carboxylate groups, respectively (Ren et al. 2018).

Fig. 1
figure 1

FTIR spectra of RDE and CDE before sorption

The spectra of the spent raw and modified DE biosorbents (SRDE and SCDE) are displayed in Fig. 2A, B. Changes were observed in them after sorption when compared to RDE and CDE. SRDE and RDE showed similar spectra line patterns, although there was movement of peaks/band to higher absorbance values and the peaks at 2158 and 2027 cm−1 became more pronounced. SCDE spectra showed diminishing peaks at 2913 and 2845 cm−1. The decrease in band intensities as well as appearance and disappearance of peaks suggests that some of the functional groups were utilized for dye adsorption (Inyinbor et al. 2015).

Fig. 2
figure 2

FTIR spectra of A RDE and SRDE, B CDE and SCDE

Scanning electron micrograph (SEM)

Figure 3 displays the SEM micrographs of the sorbents before and after sorption. The micrograph of CDE show a larger surface area with a flasky structural surface when compared to RDE. This could be due to the modification. Also, the surface of CDE showed improvement in sharpness (Ren et al. 2018; Oyekanmi et al. 2019). Due to the sorption of the CR dye molecule onto the active surfaces of the sorbent, the SEM after sorption (SRDE and SCDE) shows a more distinct and occupied morphology with flaky protuberances.

Fig. 3
figure 3

SEM of RDE and CDE before and after CR dye sorption (×10,000)

Energy-dispersive X-ray spectroscopy (EDS)

Figure 4 shows the EDS spectra obtained before sorption, and the quantitative results of their elemental compositions are also presented in Table 1. Oxygen and carbon were among the important components found in EDS spectra along with other elements that make up a little amount. For RDE, the atom percentage values of 28.44% (O) and 64.64% (C) were reported, but for CDE, the values were 17.16% (O) and 76.21% (C). The observed rise in carbon atom percentage and reduction in oxygen atom percentage in CDE as compared to RDE may be the result of the chemical alteration (Olakunle et al. 2017).

Fig. 4
figure 4

EDX spectra of RDE and CDE before CR sorption

Table 1 Elemental composition of sorbents and BET structure parameters of sorbents

Ojo et al. (2017) reported that due to bond breaking and connections caused by chemical alteration of sorbents at high temperatures, the volatile contents of the sorbents became unstable, increasing the percentage of active carbon. Bello et al. (2013) correctly noted that the performance of the sorbent for the sorption process improved with increasing carbon content. As a result, CDE is probably more effective at removing dye than RDE. After sorption, the percentage of carbon and oxygen atom of the sorbents significantly changed which implies that sorption has occurred.

The Brunauer–Emmett–Teller method (BET)

The BET surface area of the modified sorbent (0.97 m2/g) was slightly higher than the raw sorbent (0.78 m2/g) (Table 1). Both sorbents are not microporous, and CDE is more likely to have increased sorption due to its slight increase in surface area over RDE. Low surface area values have also been observed in some earlier studies on dye sorption from aqueous solution employing plant-based sorbents (Inyinbor et al. 2015; Sharma and Tiwari 2016; Lin et al. 2020). Because certain polar functional groups on the surfaces of the sorbent were removed by acidic washing of the cell wall, there was a slight increase in surface area after acid alteration (Inyinbor et al. 2015).

Figure 5 shows the adsorption/desorption plot for RDE and CDE, respectively. At high relative pressure beyond 8 (p/po), both show a sharp rise in quantity adsorbed and the isotherms were almost overlapped for both sorbents which indicates the presence of identical adsorption.

Fig. 5
figure 5

N2 adsorption/desorption isotherm for RDE and CDE

Based on IUPAC classification, the isotherms were most relatable to the type II isotherm which depicts unrestricted monolayer–multilayer adsorption (Sing et al. 1985). However, the desorption isotherms drifted from the expected isotherm to form a hysteresis (Kong et al. 2019). The occurrence of the hysteresis further reinforces the monolayer–multilayer adsorption as well as the involvement of ranging pore sizes on the sorbent surfaces as reported by Bwatanglang et al. (2023).

Point of zero charge (PZC)

Varying PZC was recorded for both sorbents (Fig. 6). RDE and CDE recorded a PZC of 6.2 and 2.8 respectively. If pH < PZC, then the surface of the sorbent will tend to attract anions as it will be positive and vice versa. Since the sorbents PZC values are in the acidic range, they would have the tendency to attract anions via electrostatic attraction (Bello et al. 2020).

Fig. 6
figure 6

PZC for RDE and CDE

Effects of experimental variables on the sorption of CR dye

Time

Figure 7 clearly demonstrates that as contact time increased, the removal effectiveness of CR dye by 0.05 g, 0.1 g and 0.15 g of the sorbents rose quickly. It is significant to note that compared to RDE, which took 90 min to reach equilibrium, CDE did so in 60 min. All the sorbent masses had a consistent tendency toward equilibrium and once equilibrium had been reached, there was no further consistent rise in CR dye removal. CDE also recorded higher removal efficiencies when compared to RDE. This implies that a sorption process involving CDE would need less sorbent for optimum dye removal. CDE's application is cost-effective compared with RDE due to its shorter equilibrium time and low dosage.

Fig. 7
figure 7

Effect of time on sorption of CR dye onto RDE and CDE

The rapid removal efficiency of CR from the solution may be caused by the presence of virgin active sites on the surface of sorbents. Additionally, because a larger mass of adsorbent supplied more open active sites, the removal percentage rose with increased sorbent masses from 0.05 to 0.15 g until the surface of the sorbent was saturated leading to non-significant uptake of CR molecules (Toor et al. 2010; Tarmizi et al. 2017). In other studies based on the adsorptive removal of anionic dyes, similar patterns were reported (Felista et al. 2020; Edokpayi and Makete 2021).

Temperature

By raising the operating temperature in the range of 30 and 80 °C, the impact of temperature was examined. The results as shown in Fig. 8 indicate that an exothermic sorption process occurred because an increase in temperature did not favor the sorption of CR dye onto RDE. On the other hand, CDE demonstrated greater CR dye removal effectiveness as temperature increased, indicating an endothermic sorption process. The increased mobility of the dye molecule and greater activation of the sorbent's active sites may be responsible for the increased uptake of CR dye by CDE at high temperatures. This result indicates that only a small amount of CDE is needed for the best CR dye removal, as the lowest mass of 0.05 g of CDE demonstrated good removal effectiveness.

Fig. 8
figure 8

Effect of temperature on sorption of CR dye onto RDE and CDE

Dosage and concentration

Increase in sorbent dosage led to a sequential increase in the sorption efficiency, which is expected because more vacant sites were present on the surface of the sorbents. As the sorbate dosage increases and equilibrium is eventually achieved, no further increase or decrease is recorded (Edokpayi et al. 2019). Equilibrium in this study was achieved at 4 g/L for RDE while a smaller dosage (1.5 g/L) attained comparable removal efficiency (Fig. 9). Therefore, the modification of the sorbent aided the removal efficiency recorded at lower dosage. Regardless of the different sorbent dosages, identical removal efficiencies of CR were observed at equilibrium. This result is also in line with the idea that a low dosage of CDE is necessary for maximum effectiveness and thus less production of sludge.

Fig. 9
figure 9

Effect of dosage and concentration on sorption CR dye onto RDE and CDE

pH

pH is a very important experimental driver in sorption processes as some sorption processes can be aided or retarded by a change in pH value. Maximum sorption efficiency was recorded at a pH value of 2 for both sorbents (Fig. 10). This finding agrees with that of the PZC showing the potential of increased sorption in the acidic pH range. Thus, at lower pH the surface of the sorbent is positive and capable of attracting CR which is an anionic dye chiefly via electrostatic interaction. Therefore, at increased pH value the surface becomes negative, leading to a decrease in sorption capacity due to electrostatic repulsion between the negatively charged sorbent surface and the anionic dye (Olakunle et al. 2017; Zhou et al. 2018).

Fig. 10
figure 10

Effect of pH on the uptake of CR dye unto RDE and CDE

Change in water chemistry

By comparing the removal efficiencies of experiments done with simulated CR dye wastewater created with surface water and that of deionized water, the effect of changes in water chemistry on the sorption of CR dye from aqueous solution was studied. The experiment's findings, as graphically displayed in Fig. 11, show that surface water exhibits more CR dye sorption than deionized water. The catalytic influence of surface water ions on the sorption process may be the cause of surface water's higher removal efficiency (Edokpayi et al. 2019). These ions have the tendency to hasten the uptake of CR dye from an aqueous solution onto the sorbent's active sites. This upward trend in removal efficiency in surface water is consistent with the adsorption of dyes onto some plant-based sorbents (Edokpayi et al. 2019; Jegede et al. 2021). This confirms that the sorption procedure using the new sorbent can sequester dye from actual wastewater as opposed to only simulated dye wastewater created in the laboratory.

Fig. 11
figure 11

Effect of change in water chemistry on the sorption of CR dye onto RDE and CDE

Sorbent removal efficiency of other dyes

The ability of the sorbent to remove various other dyes from aqueous solution as effectively as CR (anionic) dye was examined. Five additional dyes were chosen, including cationic dyes like Rhodamine B, Methylene blue and Malachite green, as well as anionic dyes like Methyl orange and Erythrosine B. The graphs shown in Fig. 12 suggest that the sorbents are useful at removing the additional test dyes. The cationic-based dyes, however, reported greater removal percentages. This result demonstrates that these innovative sorbents are useful for the efficient sequestration of other dyes. Optimal removal of other dyes by RDE was at 90 min and mass of 0.15 g, but CDE maintained optimal removal at 60 min and 0.05 g. The improved sorbent is therefore useful for industrial applications that require cost-effectiveness.

Fig. 12
figure 12

Removal efficiency of RDE and CDE on selected dyes

Sorption kinetics

Based on the linearized coefficient (Table 2), the pseudo-second-order kinetics is the best fit model for the sorption process as shown in Figs. 13 and 14. Similar result has been reported on the sorption of CR on various sorbent (Khan et al. 2015; Zhou et al. 2018; Zhang et al. 2019; Lafi et al. 2019; Felista et al. 2020; Wekoye et al. 2020).

Table 2 Kinetic model parameters for RDE and CDE
Fig. 13
figure 13

Kinetic model plots of RDE

Fig. 14
figure 14

Kinetic model plots of CDE

To further understand the mechanism and rate-controlling processes affecting the sorption kinetics, the Webber–Morris intra-particle diffusion model was utilized. This model details the steps that the CR dye takes to migrate from an aqueous solution to the surface of the sorbent. These stages are (1) boundary layer diffusion of CR dye molecules from aqueous solution to the surface of the sorbent, (ii) intra-particle diffusion of CR dye molecules, and (iii) sorption of CR dye molecules to the sorbent's active sites, which is the equilibrium stage (Rápó et al. 2020). The fact that the plot of qe against t0.5 is linear indicates that the rate-controlling phase involves intra-particle diffusion. However, the fact that the linear plot did not pass through the origin and the intercept value is smaller than 0 suggests that there are additional rate-controlling processes besides intra-particle diffusion. This implies that the sorption process involves both surface sorption and intra-particle diffusion, leading to a complicated sorption mechanism (Singh et al. 2020).

Sorption isotherms

Various linearized plots of isotherm models are shown in Figs. 15 and 16. Table 3 shows values for isotherm model parameters based on the slopes and intercepts of these plots. These findings demonstrate that the Langmuir isotherm model, which had the greatest R2 values, provided the best fit for the sorption data. This is presuming that monolayer sorption took place on a flat, homogenous sorbent surface. A separation factor, also known as a dimensionless constant, further supported the sorption process' adherence to the Langmuir model (RL). The RL values recorded were in the range of 0 and 1, which suggests that the sorption process is advantageous. Additionally, the sorption intensity (n) of the Freundlich model showed values greater than one, which is also a sign that the sorption process was favorable by the model.

Fig. 15
figure 15

Isotherm model plots of RDE

Fig. 16
figure 16

Isotherm model plots of CDE

Table 3 Isotherm models parameters for adsorption of CR dye onto RDE and CDE

According to the Temkin isotherm model, sorbate–sorbent interaction causes the heat of sorption of the sorbate's molecule to linearly decrease with sorbent layer coverage (Temkin and Pyzhev, 1940). The plots of qe against ln Ce produced linear graphs, and according to the parameter values, KT decreased for RDE but increased for CDE as temperature rose. Temkin's model, however, did not offer the greatest match for the sorption data and showed the lowest R2 values when compared to other models. Comparable investigations using different plant-based sorbents on the adsorptive removal of CR dye from aqueous solution also demonstrated compliance to the Langmuir isotherm model. Table 4 presents the comparison of the maximum sorption capacity of these sorbents and others reported in literature for the sequestration of CR, although the sorption operating conditions were different. It is crucial to notice that CDE recorded higher CR removal in comparison to RDE. Studies by Yan et al. (2018) and Zhang et al. (2019) found that CA-modified sorbent had a greater sorption capacity than raw sorbent.

Table 4 Maximum sorption capacity of CR dye onto various sorbents in literature

Thermodynamics of the sorption process

The linear graphs in Fig. 17 was obtained from the Van't Hoff plot of ln Ko against (1/T). The values obtained for all the parameters are shown in Supplementary Table 1. The change in enthalpy (ΔH°) and entropy (ΔS°) was estimated from the slope and intercept of the graphs. At all operating temperatures, CR dye sorption onto both RDE and CDE produced negative ΔG° values, suggesting that the sorption processes were both spontaneous and possible. When CR dye molecules bind to the active sites, there is an increase in randomness at the sorbent–sorbate interface, as seen by the positive value of ΔS° obtained for both sorbents. Additionally, the positive value of ΔS° suggests that CR dye molecules are attracted to the sorbent favorably. However, sorption of CR dye unto RDE displayed negative ΔH° value, which infers exothermic sorption process, while that of CDE was endothermic because of the positive ΔH° value. Comparable observations have been reported in the literature for sorption of CR unto other raw and acid-modified sorbents (Rao and Rao 2016; Ojo et al. 2017; Lafi et al. 2019; Litefti et al. 2019).

Fig. 17
figure 17

Van’t Hoff plots of CR dye sorption onto RDE and CDE

Adsorption mechanism

The sorbent's surface functional groups and the CR dye molecule are believed to have formed hydrogen bonds and electrostatic interactions that caused the sorbate and sorbent to bind together. For RDE and CDE, the point of zero charge was measured to be 6.2 and 2.8, respectively. This means that the R-SO3- group in the CR dye molecule can be attracted to the surface of the sorbent in acidic media via electrostatic interaction. Additionally, at low pH levels, the functional groups of the sorbents such as OH, C=O and COOH can readily protonate and attract the negative ions on the sorbate. FTIR of CDE also shows that the functional groups which were previously available before sorption such as 2913 and 2845 cm−1 diminished afterward, indicating a bond between the dye and the group during adsorption.

Consequently, as pH rises, it is anticipated that the functional groups on the surface of the sorbent will fully ionize, leading to an electrostatic attraction between the CR and the surface of the sorbent. However, the functional groups tend to repel each other, resulting in a decreased sorption capacity of the sorbent (Lafi et al. 2019). Additionally, the development of hydrogen bonds as a secondary force of attraction in the sorption process is more probable (Ahmad and Kumar 2010). This is due to the sorbent and sorbate's surfaces having hydrogen and highly electronegative atoms like oxygen and nitrogen. Three interactions between the sorbent and dye molecule are likely, according to earlier research (i) hydrogen bonding between hydroxyl groups of sorbent and electronegative groups of CR dye, (ii) ionic interaction at pH value where surface charge is neutral and physisorption occurs and (iii) π-electron resonance (Zhang et al. 2019; Rapo et al. 2020).

Desorption research/regeneration

Figure 18 displays the data plots from the desorption experiment. Three desorbing agents were used in the desorption experiment: 0.1 M HCl, 0.1 M NaOH and deionized water. The 0.1 M NaOH solution, which recorded the highest desorption efficiency among the three investigated solvents, most efficiently regenerated the used sorbents. This shows that electrostatic interaction and hydrogen bonding dominate the sorption process (Ahmad and Kumar 2010; Lafi et al. 2019). The migration of CR dye molecules from the solid to liquid phase was influenced by the solvating strength, desorbing agent concentration and agitation rate (Momina et al. 2019).

Fig. 18
figure 18

Desorption of spent sorbents (left) and regeneration and reuse cycles of RDE and CDE (right)

Additionally, five sequential cycles of repeated washing of sorbents with 0.1 M NaOH were used to conduct an experiment on regeneration and reuse. For the second and third cycles as shown in Fig. 18, sorbents were able to adsorb CR dye at a level that was comparable to the virgin (1st cycle) samples. Sorption efficiencies during the fourth and fifth cycles show a sharp drop.

It may be difficult to recover 100% of the sorbent's mass from solution and the alkaline solution has changed the sorbents' surface structures, both of which contribute to the fall in sorption effectiveness (Liu et al. 2018). As a result, sorption sites may be lost, damaged or blocked. Lafi et al. (2019) have documented a similar usage of NaOH as a successful desorbing solvent.

In conclusion, this study confirms that the novel sorbents may be recycled and re-utilized, making it a practical sorbent for removing hazardous dyes from aqueous solutions. The used sorbent can be properly disposed of in a regulated landfill that accepts hazardous waste.

Conclusion

DE is a locally available plant material in Vhembe District, Limpopo Province, South Africa. Raw DE (RDE) and citric acid-modified DE (CDE) were both studied for CR removal from aqueous solution via adsorption technique. FTIR spectra of RDE and CDE showed similar functional groups (O–H, CH– and C–O), while CDE displayed a shift to higher absorbance as well as the introduction of new functional groups such as 1589, 1621, 2913 and 2845 cm−1. SEM clearly confirmed the modification of CDE with a larger surface area and a flasky structural surface when compared to RDE. Furthermore, EDS showed an increase in carbon atom percentage and decrease in oxygen compared to RDE which was linked to improved dye removal from water. The BET surface area also revealed a higher surface area for CDE and RDE, thus implying a higher sorption capacity. The pzc of both adsorbents was in the acidic region which facilitated the attraction of anionic dyes via electrostatic attraction. CDE produced better removal than RDE with optimum experimental parameters of pH 2, 60 min contact time, adsorbent dosage of 1.5/L and high operating temperatures. Surface water samples were also used and the results showed better CR removal than deionized water. Consequently, CDE was also used for the removal of five additional dyes (cationic dyes and as anionic dyes) though the sequestration was higher for the anionic dyes. Regeneration was also possible with RDE and CDE adsorbing CR as effectively as the virgin adsorbent during the first 3 cycles, after which a decreased was observed in the fourth and fifth cycle. The Langmuir model of monolayer sorption best described the sorption process with a maximum sorption capacity of 51.02 mg/g for RDE and 53.19 mg/g for CDE, respectively. The sorption process was spontaneous and endothermic for CDE but was exothermic for RDE.