1 Introduction

Different industrial sectors use heavy metals in various applications because of their interesting properties, such as the high electrical conductivity. However, these heavy metals are toxic and one of the deadly contaminants in groundwater [1,2,3,4]. Even at low levels, their toxicity can lead to several effects on the nervous system, carcinogenic effects on the blood and bone marrow, and kidney disorders. Various metal ions are present in industrial wastewater. Therefore, properly treating this wastewater before discharge into the water bodies is a high priority globally [5,6,7,8,9,10,11].

Many water pollution control methods and techniques have been developed in recent years. Among these techniques are chemical precipitation processes, ion exchange, electrolysis, membrane processes, adsorption, etc. [12,13,14,15,16,17]. The adsorption process is one of the methods that have shown significant profitability for the elimination of contaminants of different natures, in particular organic pollutants (pesticides, dyes, phenolic compounds, etc.), and heavy metals (cadmium, lead, mercury, etc.) [15, 18,19,20,21]. Activated carbon adsorption is the most widely used and recommended process for treating wastewater in industries. Despite its effectiveness, activated carbon remains an expensive material and is imported most. Therefore, the research and development of new natural, abundant, economically profitable, and effective adsorbents for the treatment of ecosystems is a must. Nowadays, new regulations have emerged in environmental protection, particularly in the depollution and recycling of heavy metals that require environmentally friendly depollution procedures. When considering depollution of heavy metals by adsorption process, the use of low-cost natural adsorbents represents a good choice [7, 22,23,24,25,26]. Bio-adsorbents such as biomass, agricultural solid waste, and modified or unmodified clays have shown promising results for the adsorption of pollutants [27, 28].

Thanks to their natural abundance and affinity for heavy metals, agricultural wastes are an important option for removing heavy metals from aqueous solutions, which can be an excellent alternative to activated coal [29,30,31]. The agricultural waste provides a complex mixture containing lignin and cellulose as the main constituents. The adsorption of pollutants can occur through lignin’s polar functional groups, including alcohols, aldehydes, ketones, acids, phenolic hydroxides, and ethers that can act as binding agents [32]. The adsorption treatment of Cu2+ in wastewater using agricultural wastes or biomass has been extensively studied [33,34,35,36]. Biomass is any type of wood-rich waste. There are two types of agricultural wastes. The waste of living organisms such as seafood and waste of plants such as biomass. Previous studies showed that seafood waste could be effective adsorbents for Cu2+ removal from aqueous solutions [37]. These studies showed that the elimination of Cu2+ could reach up to 90%, as in the case of raw chitin [38], due to the presence of lone electron pair on nitrogen of amine function [39]. Besides, several adsorbents from agricultural waste have been used for heavy metals removal from aqueous solutions such as carrot residues [40], soybean husks, cotton seed husks, rice straw, and bagasse [41], apple waste [42], banana marrow [43], peanut shells [44], grape stalks [45], wheat shell [46], tea waste [47], sunflower stalk [48], tree fern [49], Capsicum annum seeds [50], and palm kernel fibers [51].

It is paramount for life on Earth to valorize different natural wastes, given their actual or potential usefulness as renewable natural resources. Many aspects of human activity are dependent on these resources. In Morocco, particularly in the Meknes region, despite the substantial works related to agro-wastes valorization, these wastes are heavily discharged without any treatment. One of the main ways to effectively valorize these wastes is their integration into the economic cycle. In this regard, our research team aims to create, through research, a complete valorization cycle that take into consideration academic research and local communities, and the present research is a one step towards achieving this goal. Furthermore, from a scientific point of view, although several research have been performed using agro-wastes, such as the batch removal of Cu2+ ions from aqueous solution using low cost adsorbents such as walnut, hazelnut, and almond shells under different experimental conditions [52], to the best knowledge of authors, no work is reported comparing the adsorption capacity of coconut, almond, walnut, and peanut shells for Cu2+ removal. Most of the reported results focus on the individual performance of agro-wastes or comparison with other adsorbents without a complete valorization program.

The present work reports a comparative study and critical analysis of Cu2+ adsorption on four types of agricultural wastes. The removal of Cu2+ from an aqueous solution by adsorption was carried out using coconut, almond, walnut, and peanut shells. Tested materials were characterized using X-ray diffraction (XRD), the Fourier transform infrared spectra (FTIR), nitrogen adsorption/desorption measurements, and SEM/EDS analysis. Then, the kinetic and isothermal study was undertaken. To get more insights about the adsorption mechanism, investigated materials were characterized after the adsorption process.

2 Materials and methods

2.1 Preparation of adsorbents

In Morocco, several regions are known for their high production of nuts, such as almond shells and walnut shells. The waste from these dry fruits is still discharged without any valorization at the regional or national level. The studied biomass samples were collected from different regions of Morocco: almond shells and coconut shell (Meknes), walnut shells (Marrakesh), and peanut shell (El Gharb). Collected shells were cut into small pieces and, after drying and crushing, washed thoroughly with double-distilled water. Then, the four biomass samples were dried in an oven for 24 h at 105 °C to reduce their moisture content. The cleaned shells were crushed and sieved to obtain particle size in the range of 1–5 mm. Investigated samples are shown in Figure S1, supplementary material.

2.2 Characterization of adsorbents

Fourier transform infrared spectroscopy is based on the analyzed material’s absorption of infrared radiation (400–4000 cm−1). It allows via the detection of characteristic vibrations to identify the chemical functional groups. The FTIR spectra were collected using Shimadzu spectrometer (JASCO 4100, Japan). The structural analysis by X-ray diffraction (XRD) was carried out on a diffractometer type X-RD-6100-Shimadzu (λCu = 1.54 Å). The diffraction spectrum was produced for 2Ө value between 2° and 80°, at a scanning speed of 1°/min. The morphology of the biomass samples was studied using the Hitachi S-3400 N scanning electron microscope, equipped with an energy dispersion spectroscopy (SEM–EDS) probe.

2.3 N2 adsorption measurement

Physical gas adsorption is a widely used method to study the porosity of solids. The specific surface of investigated samples was determined by gas multilayer adsorption, according to Brunauer, Emett, and Teller (BET). Prior to measurements, for each sample, degassing process was performed for 16 h under vacuum at 350 °C. The BET surface area was determined by a volumetric adsorption apparatus by nitrogen adsorption at − 196 °C using Micromertics TriStar II.

2.4 Adsorption experiments

For batch adsorption experiments, tests were performed by adding specific amounts of each shell as adsorbent to Erlenmeyer flasks containing metal ion solutions and stirred at 180 rpm until equilibrium. The following experimental conditions were maintained: The temperature and pH were maintained at 25 °C and pH = 5.5, respectively; a mass m = 50 mg of adsorbent, 20 mL of a solution of copper sulfate of concentration C = 4 × 10−3 mol/L. After a determined contact time, samples were filtered, and the final Cu2+ concentrations were measured. After the adsorption time (t), the filtrate was allowed to react with ammonia to form a complex to determine the residual concentration of Cu2+ by atomic absorption spectrophotometry (Perkin Elmer SIMAA 6000). The effect of initial Cu2+ concentration was investigated for isothermal study.

The removal rate R (%) and equilibrium adsorption capacity qe (mg/g) were calculated using the following equations [25]:

$$R(\mathrm{\%})=\frac{{C}_{0}-{C}_{e}}{{C}_{0}}\times 100$$
(1)
$$Qe\left(\frac{mg}{g}\right)=\frac{{C}_{0}-{C}_{e}}{{C}_{0}*m}\times V$$
(2)

where C0 is the initial Cu2+ concentration (in mg/L) and Ce is the Cu2+ concentration at equilibrium (in mg/L).

Kinetic and isotherm models analyzed in the present work are listed in Table S1 along with their equations and fitting parameters.

3 Results and discussion

3.1 Characterization of adsorbents

3.1.1 FTIR analysis

Figure 1 shows the FTIR spectra illustrating the functional groups of different tested biomass samples. It can be noticed that all biomass samples have similar aromatic and aliphatic functional groups. These groups are the characteristics of three main constituents of the tested wastes, i.e., cellulose, hemicellulose, and lignin. These three components are mainly alkenes, esters, ketones, aromatic rings and alcohol, with different functional groups. Peaks located at 3400–2900 cm−1 can be assigned to hydroxyl/aliphatic hydrocarbons, with prominent peaks at 3400 cm−1 (O–H), and 2900 cm−1 (C–H) [53]. The absorption peaks observed at 1765–1715 cm−1 can be attributed to the aromatic C = O functional group, while those at 1270 cm−1 and ~ 1050 cm−1 are mainly associated with C–O–C and C–O–H, respectively [54, 55].

Fig. 1
figure 1

FTIR spectra of biomass samples

3.1.2 X-ray diffraction

Waste materials’ crystalline and amorphous properties can be evaluated using XRD [56]. Because of their natural function of protecting the seed, shells are the hard raw material with a high crystallinity [57]. In this work, X-ray analysis was performed for biomasses to investigate their crystallinity [58]. Figure S2 (Supplementary material) shows the XRD curves of four biomasses. This analysis indicates two slightly narrow peaks detected at 2θ values around 16 °C and 22 °C for agricultural wastes. These peaks are due to the crystalline structure of the cellulose contained in the biomasses [59, 60]. Similar results were found in [61].

3.1.3 SEM–EDS analysis

The morphological and structural properties of biomasses were examined using the SEM–EDS, which provides morphological and elemental qualitative information. The inspection of AS and WS shows that they exhibit a different surface morphology (Fig. 2). From the SEM images of the biomasses, it can be noticed that both shells have a rough surface due to presence of pores. The WS (Fig. 2a) has a characteristic of a material with a rough and laminated structure. However, the surface morphology of AS (Fig. 2b) seems to have a less porosity with a more compact and smoother surface.

Fig. 2
figure 2

SEM images of walnut shells and almond shells

The EDS analysis at a specific location provides localized elemental analysis data. Therefore, it would be inappropriate to compare it with the basic analysis in bulk. However, EDS analysis (Table 1; Figure S3) reveals that all samples have a large amount of C and O. AS and WS have a bit higher carbon than other samples. In contrast, the PS has the highest amount of oxygen in the analyzed location. Traces of other elements such as Ca, K, Al, and Mg are also detected in the biomass samples but very small amounts.

Table 1 EDS analysis of samples

3.1.4 BET surface area measurements

The specific samples’ areas are determined using the BET model and reported in Table 2. Specific surface area results of samples show that the CS has a clearly important surface compared to other shells, which can be attributed to the fibrous nature of the CS and spaces that separate its fibers. In contrast, walnut and almond shells have a compact structure, explaining the small decrease in their surface area. The specific surface area of the nut shells is similar to that found by Ahmadou et al. [62, 63] in their work on three biochar’s derived from nut shells.

Table 2 Surface area of samples obtained by BET theory

3.1.5 The pH at the zero-charge point

The point of zero charge (PZC) is an essential characteristic for surfaces because it represents an estimate of its acid–base. By definition, in the case where no specific sorption occurs (no surface complexation), the PZC corresponds to the pH of the medium for which the net proton charge equals Zero [64, 65]. The more the pH increases towards PZC, the more the density of negative ions on the surface of the adsorbent increases in turn, further allowing the adsorption of cations. According to Figure S4, the intersection point corresponds to a pHpzc = 4.75, 4.86, 5.13, and 5.22 for AS, CS, WS, and PS, respectively. Therefore, at pH values lower than these points, the global charge of the adsorbent’s surface is positive and negative at pH values higher than these values. Considering our experimental conditions, at chosen pH (5.5), the adsorbent’s surface will have a negative charge, allowing positive metal cations to interact with it physically.

3.2 Copper ion adsorption

3.2.1 Contact time

It is of paramount importance in adsorption studies to investigate retention kinetics, which provides insights about the necessary contact time to achieve the adsorption equilibrium. The Cu2+ adsorption on the four tested samples is conducted, and results of adsorption capacity as function of contact time are shown in Fig. 5. The curves in Fig. 3 show that the kinetics of adsorption of Cu2+ on the various adsorbents is initially very fast, then starts to stabilize at t ≈ 80 min of contact, and finally fully stabilized at t = 180 min. The higher Cu2+ adsorption rate at the beginning is mainly due to the larger surface area of shells available for adsorbing Cu2+. When the surface adsorption sites become exhausted, the Cu2+ adsorption rate is controlled by the rate at which the adsorbate is transported from the exterior to the interior sites of the adsorbent particles [66]. On the other hand, at t = 120 min, the four materials represent the maximum adsorption capacity; therefore, it is designated as the equilibrium time. The saturation value of the surface is 65.10 mg/g, 57.39 mg/g, and 26.14 mg/g, and 24.20 mg/g, for WS, CS, PS, and AS, respectively; in the following order: WS > CS > PS > AS. The difference in adsorption capacity between tested adsorbents is probably due to the diffusion rate and interaction strength of Cu2+ with each adsorbent’s surface. Although tested shells have a similar composition, their structures are different as shown from BET analysis. Similar behavior was observed in our previous study on Cu2+ adsorption on a natural bio-adsorbent [38].

Fig. 3
figure 3

Influence of contact time on copper adsorption on adsorbent supports: C0 = 4 × 10−3 M, pH = 5.5, Vsol = 20 mL, mads = 50 mg, T = 25 °C

3.2.2 Adsorption kinetics

Kinetic studies are useful for evaluating the adsorption mechanism [67, 68]. Kinetic studies were carried out using 50 mg of each adsorbent, 4 × 10−3 mol/L of Cu2+ in 20 mL of solution at pH = 5.5 and 25 °C temperature. The modeling of adsorption kinetics of Cu2+ has been investigated using pseudo-first-order (PFO) kinetic equation (Lagergren model) and pseudo-second-order (PSO) (Ho et Mckay model) [69, 70]. The expression of the PFO equation is as follows:

$$\frac{d{Q}_{t}}{dt}={k}_{1}({Q}_{e}-{Q}_{t})$$
(3)

where \({Q}_{e}\) in mg/g is the amount of Cu2+ adsorbed at equilibrium, while \({Q}_{t}\) in mg/g, the amount of Cu2+ adsorbed at the moment (t). The \({k}_{1}\) is the PFO rate constant (min−1).

The following expression describes the PSO equation:

$$\frac{d{Q}_{t}}{dt} ={K}_{2} {({Q}_{e}-{Q}_{t})}^{2}$$
(4)

where k2 is the PSO’s rate constant in g/mg min.

The PFO kinetic model suggests that “the rate of sorption is proportionally dependent to the number of adsorption active sites of the adsorbents” [71, 72]. Linear fitting of experimental data by PFO kinetic model is represented in Fig. 4. Plots in Fig. 4 show straight lines that are not perfect with a coefficient regression equal to 0. 42,589, 0.91720, 0.65492, and 0.71797 for walnut shell, coconut shell, peanut shell, and almond shell, respectively. PFO parameters obtained from fitting experimental data are represented in Table 3. From this table, results show a very low R2 values. In addition, adsorption capacity values determined from curve fitting are far from experimental ones, showing a 43% deviation. This signifies that the adsorption of Cu2+ on the four adsorbents does not follow the PFO kinetic model.

Fig. 4
figure 4

Pseudo-first order model relating to adsorption kinetics of Cu2+ on adsorbents

Table 3 First-order kinetic model parameters for the copper ions adsorption onto investigated samples

Figure 5 shows the application of the PSO kinetic model to the results obtained for the adsorption of Cu2+. It can be observed that all fitting lines match almost perfectly experimental data. Parameters from the PSO kinetic model along with the regression coefficients for the four adsorbents are listed in Table 4. From results in Table 4, it appears that R2 values are all close to 1, and significantly higher than those of the PFO model. In addition, the fitted adsorption capacity values at equilibrium (Qe) are 69.73, 33.15, 72.35, and 37.95 mg/g for walnut shell, almond shell, coconut shell, peanut shell, respectively, which are close to experimental values. These findings lead to the conclusion that the adsorption process follows the PSO model rather than PFO. It has been found that PSO kinetic model describes well the adsorption process of Cr(VI) on activated carbon prepared from almond shell [73], the adsorption of antibiotic amoxicillin on almond shell ashes [74], the adsorption of Pb(II) on almond shell activated carbon [75], and acid Blue 129 adsorption on almond shell [76], which all support the present results.

Fig. 5
figure 5

Pseudo-second order model relating to adsorption kinetics of Cu2+ on adsorbents

Table 4 Second-order kinetic model parameters for the copper ions adsorption onto investigated samples

3.2.3 Adsorption isotherm

The adsorption isotherm study is an essential approach to describe how the adsorbed molecules distribute at the adsorbent interfaces [77, 78]. Herein, adsorption isotherm studies are conducted by varying adsorbate’s concentration from 2 × 10−4 to 4 × 10−3 mol/L with 4 × 10−3 mol/L of Cu2+ in 20 mL of solution at pH = 5.5, 25 °C temperature, and equilibrium time of 120 min. The modeling of the adsorption isotherm of Cu2+ is then investigated using Langmuir and Freundlich models. The graphical representation of fitting experimental data to Langmuir adsorption isotherm model is shown in Fig. 6. The theoretical curves of Langmuir follow experimental data for the four adsorbents. Therefore, it can be concluded that the adsorption of Cu2+ is carried out on sites energetically homogeneous by probably forming a monolayer. Table 5 lists adsorption parameters derived from fitting experimental data. It shows that Cu2+ ion adsorption on WS is more significant than others, representing an adsorption capacity of 25.6 mg/g. The graphical representation of the adsorption isotherms of the Freundlich model is shown in Fig. 7, while Freundlich-derived parameters are listed in Table 6. By inspecting Fig. 7 and Table 6, it can be observed that the theoretical straight lines have a large deviation from experimental values, with regression coefficient values (R2) very low than 1. Based on these remarks, it can be concluded that the Freundlich adsorption isotherm model does not describe the adsorption of Cu2+ on four adsorbents. Comparing with Langmuir adsorption isotherm’s results, it can be confirmed that Cu2+ adsorption may be well described by the Langmuir model. In this case, the adsorption process occurs mainly at homogeneous sites at adsorbent surface and forms a monolayer.

Fig. 6
figure 6

Langmuir model for adsorption isotherms of Cu2+ on adsorbents

Table 5 Langmuir adsorption isotherm parameters for copper adsorption onto investigated samples
Fig. 7
figure 7

Freundlich model for adsorption isotherms of Cu2+ on adsorbents

Table 6 Freundlich adsorption isotherm parameters for copper adsorption onto investigated samples

3.3 Comparison with other adsorbents

The application of agro-waste materials in wastewater treatment is gaining significant scientific interest. These materials, which are usually discharged into the environment without treatment, have been proven as excellent adsorbents for heavy metals and organic pollutants. A large body of literature can be found on agricultural wastes for heavy metals removal. Table 7 lists some studies using agro-wastes and other adsorbents for Cu2+ removal along with some experimental conditions. From data reported in Table 7, it can be noticed that hard shells have lower Cu2+ adsorption ability compared to soft waste such as apple carrot. The difference is mainly attributed to the adsorbent’s surface area and functional groups. The chemical composition of an adsorbent is a key factor in its adsorption performance. On the other hand, some other adsorbents such as carbon nanotubes, MOFs, and composite materials showed very higher adsorption capacities than agro-wastes. This is mainly due to the well-designed structures of synthesized adsorbents, which are intended for a specific purpose. However, given the synthesis cost, the application of agro-wastes seems more beneficial than materials that require high resources. Overall, WS, PS, and CS show an interesting sorption capacity under present conditions compared to previously published works, while AS represents a lower sorption capacity.

Table 7 Copper sorption capacities of some adsorbents reported in the literature

3.4 Copper adsorption mechanism on tested materials

The tested materials consist of three components: cellulose, hemicellulose, and lignin. Cellulose has a linear polymeric structure composed of glucose molecules (35 to 50% of the terrestrial plant biomass). Hemicellulose is a branched heterogeneous polymer consisting of chains from several sugars (30 to 45%). Lignin is a group of chemical compounds belonging to phenolic compounds (15–25%). Therefore, the agricultural waste materials contain a complex mixture containing lignin and cellulose as the main constituents.

Chemical adsorption of pollutants can occur through the polar functional groups of lignin and cellulose, including alcohols, acids, phenolic hydroxides, and ethers that act as chemical binding agents [32]. To get more insights on the adsorption mechanism of Cu2+, FT-IR structural characterization of adsorbents before and after adsorption was carried out; the results are shown in Fig. 8.

Fig. 8
figure 8

FTIR spectrum of adsorbents before and after Cu2+ adsorption

The FTIR spectra recorded in the spectral domain 400–4000 cm−1 for the four adsorbents show the presence of several bands at 3420, 2920, 1730, 1630, 1250, 1046, and 600 cm−1. FTIR spectra recorded in the 4000–2000 cm−1 region show a wide band around 3420 cm−1, which is associated to the vibration of -OH. Bands between 4000 and 3200 cm−1 are assigned to the symmetrical elongation of water, which is formed by the interaction between hydroxyl groups (-OH) and water molecules physisorbed on the metal cation.

It also refers to the N–H vibration of amines, which occurs between 3500 and 3000 cm−1. The valence vibrations in C-H of alcohols observed around 2920 cm−1 are sensitive to the electronic state of the oxygen atom and are therefore disturbed by its interactions with other atoms.

Bands located between 1700 and 1725 cm−1 are attributed to the C═O carbonyl group of acids. The bands located between 1600 and 1670 cm−1 are characteristic of the amine and acetamide groups, respectively. In the 1300–400 cm−1 region, there is a band around 1250 cm−1 attributed to the C-O valence vibration of alcohol. The bands between 1150 and 1000 cm−1 are assigned to the CO vibration of alcohol and cyclic ethers. The 1000–400 cm−1 region of the FTIR spectra is characteristic of polymer chains’ valence and deformation vibrations. The position of different bands remains unchanged under the experimental conditions.

According to SEM analysis, adsorbents’ surface has a rigorous morphology that contains ramifications and cavities, which can be potential sites for Cu2+ adsorption. On the other hand, the chemical composition analysis of tested adsorbents reveals a dominant presence of alcohol function. As these chemical functional groups contain a free electron pair on oxygen, it can act as an electronegative adsorption site, thus attracting more Cu2+. Furthermore, cellulose and hemicellulose include ether functions. Lignin has very electron-rich centers with nucleophilic characters represented by aromatic nuclei and carbonyl C = O acid function. Therefore, given the electropositive nature of Cu2+, strong physical interactions can be expected between those functional groups of adsorbents and Cu2+. The mechanism of Cu2+ adsorption by these surfaces can be explained by a cooperative fixation of Cu2+ by the nucleophilic sites of the three constituents, i.e., cellulose, hemicellulose, and lignin. A previous work investigating the Cu2+ adsorption on seaweed-derived biochar has also concluded that the Cu2+ adsorption mechanism is due to electrostatic (cationic and anionic) attractions, surface precipitation, and pore depositions [86].

The Cu2+ mainly adsorbs on the waste materials’ surface by physical interactions without any effect on the bonds as shown by the IR spectra of the surfaces before and after adsorption (Fig. 9). The difference in the adsorption capacity can be explained on the one hand by the specific surface area of each waste which is linked to the particle size and texture of the surface and on the other hand by the number of oxygen atoms carrying the active lone electron pair. Thus, the high retention of the pollutant can be attributed to the high content of cellulose-rich in lone electron pair and the low content of lignin, which is known by its rigidity, impermeability to water, and high resistance to decomposition.

Fig. 9
figure 9

Representation of all reactive sites from oxygen functions and a proposed adsorption mechanism

4 Conclusion

Agro-wastes from coconut, almond, walnut, and peanut shells were investigated for adsorption removal of Cu2+ from aqueous solutions. Batch adsorption tests were carried out at optimized experimental conditions; pH = 5.5, equilibrium time of 120 min, 50 mg of adsorbent, and 4 × 10−3 mol/L of Cu2+ in 20 mL of solution at 25 °C temperature. From kinetic study, the PSO was found the most suitable for describing the kinetics of adsorption of Cu2+ on the four adsorbents. On the other hand, Langmuir and Freundlich isotherm models were analyzed, and Langmuir’s linear model was found suitable for describing Cu2+ adsorption process on the four adsorbents. The FTIR study has shown that the adsorbents’ chemical composition is dominant by C = O, C–O–C, and O–H functional groups. The adsorption of Cu2+ occurred through interactions between lone electron pair of functional groups of adsorbents and Cu2+, without occurrence of any chemical interactions. Results from the present work highlight the urgent need for the valorization of agro-wastes as a source of adsorbents. In the next works, further efforts will be devoted to valorizing these agro-wastes and their various uses in value-added applications such as energy and biofuels.