1 Introduction

Avocado Persea americana is a typical Mexican fruit with exceptional nutritional properties. In 2022, the global avocado market reached 14.85 billion dollars and is estimated to grow at an annual rate of 7.2% from 2023 to 2030 (GVR-4–68,039-929–5., 2022). Mexico is the largest avocado producer in the world with 2393 thousand metric tons (Shahbandeh, 2022), with the largest production center in Michoacan, in central Mexico (Denvir, 2023; Gómez-Tagle et al., 2022). Avocado is considered a superfood due to its nutritional properties (Zafar & Sidhu, 2011). It has also been processed to develop new products such as guacamole, frozen slices, sauces, puree, dehydrated, and avocado oil to satisfy consumers’ needs and incorporate them into new eating styles.

In avocado processing, seeds and skin are considered waste by-products and thus discarded. According to Rodríguez-Martínez et al. (2022), around 2 million tons of seeds and skin were generated worldwide in 2019. Mostly, these by-products still need to be recovered and valorized; otherwise, they will develop serious pollution problems due to inadequate management. These are generally discharged into aquifers or open dumps, causing soil and groundwater contamination. In the framework of the General Law of Circular Economy in Mexico (de Difusión y Publicaciones, 2021), the valorization of these wastes is essential, as it would bring strategies for waste management and economic and environmental benefits (Bitonto et al., 2021; Duque-Acevedo et al., 2020; Tesfaye et al., 2022; Venugopal, 2022). The avocado seed and skin represent a significant percentage of the avocado fruit (13–17%, or 311–406 thousand metric tons just in Mexico). They contain macromolecules such as polysaccharides, proteins, lipids, minerals, and vitamins (Bangar et al., 2022; Permal et al., 2023; Rashama et al., 2022; Restrepo-Serna et al., 2022; Rodríguez-Martínez et al., 2022) that can be further exploited. The by-products of processed avocado can be used for energy generation (Rashama et al., 2022; San José et al., 2023; Sangaré et al., 2022), development of bioproducts such as biofuels, oils, snacks, pharmaceuticals (Bitonto et al., 2021; Permal et al., 2023; Piedrahita-Rodríguez et al., 2023; Rashama et al., 2022), biomaterials (Ahmad & Danish, 2022; Asiagwu et al., 2013, 2017; Bazzo et al., 2015; Boeykens et al., 2018; Elizalde González et al., 2007; Ibrahim et al., 2023; Leite et al., 2017; Mallampati et al., 2015), among others (see Fig. 1).

Fig. 1
figure 1

Uses of avocado seeds and skin

Biomaterials derived from biomass waste constitute a feasible economic-environmental alternative for their valorization (Balbay & Acıkgoz, 2022). Due to their composition, these biomaterials own many functional groups, which facilitates their use as bioadsorbents. Thus, they have gained increasing attention in recent years for removing recalcitrant organic pollutants present in water (Adegoke & Bello, 2015; Souza et al., 2020; Xing et al., 2008), such as anthracene (Enahoro Agarry, 2016), phenolic compounds (Leite et al., 2017), acetaminophen (Villaescusa et al., 2011), and heavy metals such as Ni (Gupta & Jain, 2021; Mallampati et al., 2015), Cu (Ligas et al., 2022; Pereira et al., 2021), Cd (Bahsaine et al., 2023), Pb, Cr (Boeykens et al., 2018, 2019; Foroutan et al., 2019; Gupta & Jain, 2021; Ligas et al., 2022; Mahmoud et al., 2022; Mallampati et al., 2015), Hg (Yu et al., 2016), among others. Untreated wastewater containing hazardous substances poses significant risks to public health and disrupts aquatic ecosystems. Moreover, producing everyday items such as textiles, rubber, plastics, leather, cosmetics, and paper contaminates water streams. An example is the textile industry, which has water-intensive practices such as bleaching, dyeing, and printing. In particular, dyeing can cause visual pollution and introduces bioaccumulative dyes that may form unwanted hazardous byproducts when metabolized by microorganisms. Various dyes are used in industry, including natural and synthetic, among which we can find rhodamine B (RhB). RhB has been associated with environmental concerns due to its potential toxicity and persistence in water systems. This article discusses RhB dye as a contaminant in wastewater and explores effective and sustainable methods for removing it from wastewater streams.

The bioadsorption process for organic compounds is highly efficient and simple, and does not produce degradation intermediates (Enahoro Agarry, 2016). The most common bioadsorbents consist of biomaterials activated by different chemical and thermal processes (Aichour et al., 2018; Al-Gheethi et al., 2022; Arivoli et al., 2009; Bahsaine et al., 2023; Berrazoum et al., 2015; Besegatto et al., 2021; Cheng et al., 2017; Elizalde González et al., 2007; Kasiri, 2019; Leite et al., 2017; Lima et al., 2020; Z. Liu et al., 2022; Sahu & Singh, 2019; Yadav et al., 2022). The surface functionalization of activated carbon leads to high adsorption capacity, surface area, and reactivity. Nevertheless, its synthesis from waste biomass and its regeneration needs energy-intensive thermal and chemical processes, which conveys a big challenge for up-scaling to the industrial level. Therefore, materials that can easily integrate sustainable energy solutions, such as solar power, should be developed. In this regard, natural biomaterials are emerging as an alternative to activated carbon. The simple and low-cost synthesis processes of natural biomaterials make it possible to use low-temperature solar systems for drying biomass waste. Solar drying is a sustainable energy supply in the agro-industry (Ortiz-Rodríguez et al., 2022) and reduces the overall carbon footprint of the derived material. Literature reported the development of natural bioadsorbents from several sources, such as banana (Boeykens et al., 2018; Enahoro Agarry, 2016), mandarin (Besegatto et al., 2021), avocado skin (Boeykens et al., 2018) and seed (Asiagwu et al., 2017; Bazzo et al., 2015; Mahmoud et al., 2022), cashew leaf and carnauba straw (Pereira et al., 2021), peanut shell (Boeykens et al., 2018), olive (Albanio et al., 2021), sugarcane bagasse (Boeykens et al., 2018), and others (Rahim et al., 2021; Rashid et al., 2021).

Natural bioadsorbents from avocado waste have been used to remove anionic and cationic dyes, demonstrating high efficacy (Asiagwu et al., 2013; Bazzo et al., 2015; Mallampati et al., 2015; Netto et al., 2019). Bioadsorbents from avocado seeds have been extensively researched in literature, but only a few studies explore the potential of avocado skin as biosorbents, let alone compare their adsorption capabilities.

This work reports the valorization of avocado seed and skin for developing low-cost bioadsorbent materials. These natural bioadsorbents are applied to remove a model dye (RhB) under different experimental conditions: pH, RhB concentration, bioadsorbent concentration, and temperature. Other bioadsorbents from waste-activated bioadsorbents have been used for RhB removal (Al-Gheethi et al., 2022; Arivoli et al., 2009; Z. Liu et al., 2022). However, the study of removing this dye with natural bioadsorbents from avocado residues has not been reported.

2 Methodology

2.1 Materials

Rhodamine B (C28H31ClN2O3, 99.9%) was used as the pollutant model, and KCl to control the ionic strength. pH adjustment was done with nitric acid (HNO3, 60–66% conc.) and potassium hydroxide (KOH, 85%). All chemicals were purchased from Merck as A.C.S reagent grade and used as received without further purification.

2.2 Recovery and Valorized

Avocado skin (ASk) and seed (ASe) were harvested and washed to remove pulp excess and minimize microorganisms’ growth. Once washed, seed and skin were cut into pieces of approximately 1 × 1 cm, followed by a drying process in an oven at 50 °C for 72 h and grinding in an electric mill. Then, the pulverized biomaterials were sieved using a 410-μm mesh. These biomaterials were characterized and evaluated as bioadsorbents for RhB dye removal. Note that a low-temperature methodology was used to synthesize the bioadsorbents, which avoids using chemical precursors for activation, aiming for a green chemistry approach. Moreover, considering dehydration is the most energy-consuming process; it is feasible to substitute it with solar drying systems assisted with suitable phase change materials and conventional means to ensure a continuous sustainable process.

2.3 Characterization

To determine moisture and composition of volatile, organic, and inorganic matter of ASk and ASe bioadsorbents, a thermogravimetric method was applied according to Norma Mexicana (NMX-AA-034-SCFI-2015), detailed in Section A in the SM.

The leaching of minerals on the ASk and ASe bioadsorbents in acidic conditions (pH 3) was determined by inductively coupled plasma mass spectrometry, ICP-MS (iCAP Qc Model, Thermo Scientific). The samples were prepared by adding 0.2 g of the bioadsorbents to 100 mL of water at pH 3. The supernatant was collected after centrifugation at 7500 rpm and analyzed by ICP-MS.

The ASk and ASe bioadsorbents were characterized by thermogravimetric analysis (TGA), Fourier transform infrared (FTIR) spectroscopy, X-ray diffraction (XRD), X-ray photoelectron spectroscopy (XPS), inductively coupled plasma mass spectrometry (ICP-MS), N2 adsorption–desorption isotherm, and scanning electron microscopy (SEM).

The crystalline structure of the materials was analyzed with a Bruker D2-Phaser diffractometer using CuKα radiation at 30 kV and 10 mA. Diffractograms were scanned at 2θ angles from 5 to 80° with 0.5 s per step and increments of 0.0100806°.

X-ray photoelectron spectroscopy (XPS) analyses were carried out in an ultra-high vacuum (UHV) system scanning XPS microprobe PHI 5000 VersaProbe II, with an Al Kα X-ray source  = 1486.6 eV) monochromatic with 100-μm beam diameter, and a multi-channel detector (MCD) analyzer. The XPS spectra were obtained at 45° to the normal surface, pressure 5 × 10−7 Pa, constant analyzing energy (CAE) E0 = 117.40, 11.75 eV survey surface, and high-resolution narrow scan. The surface samples were not etched. The peak positions were referenced to the background Ag 3d5/2 photopeak at 368.20 eV, with an FWHM of 0.81 eV, and C1s hydrocarbon groups at 285.00 eV, Au 4f7/2 at 84.00 eV central peak core level position. The XPS spectrum was fitted with the MultiPak PHI software and Spectral Data Processor, SDP v 4.1.

The specific surface area and average pore diameter of ASk and ASe bioadsorbents were determined by adsorption/desorption isotherms using liquid N2 (77 K) obtained in a Gemini 3240 Micromeritics BET Surface Analyzer and its degassing unit. The bioadsorbents samples were first degassed at 100 °C for 24 h under vacuum conditions of 2.5 mbar to eliminate moisture before adsorption measurements. The specific surface area of bioadsorbents was estimated by the BET (Brunauer–Emmett–Teller) methodology.

The bioadsorbents morphology was observed with a JEOL (model JSM-7600F) microscope, equipped with an Oxford brand EDS detector (model INCA X-Act).

The attenuated total reflectance Fourier transform infrared (ATR-FTIR) spectroscopy allowed us to identify the functional groups on the bioadsorbents. ATR-FTIR spectra were collected using a Thermo Scientific Nicolet iS10 FTIR spectrometer fitted with a Thermo Scientific Smart iTR™ ATR accessory with a diamond crystal and using the OMNIC software. Powder samples were added directly onto the crystal for analysis at room temperature without applying pressure. Sixteen spectra were obtained and coadded for each sample covering a range of 4000–650 cm−1 at a spectral resolution of 4 cm−1. A background spectrum was obtained by collecting a similar number of scans after cleaning the diamond crystal with acetone.

Thermogravimetric analysis was obtained using a Perkin Elmer thermal analyzer Model STA 6000, using oxygen gas at 30 cm min−1, 20 mg of material, and heating from 25 to 850 °C at 10 °C min−1.

The pH value at the isoelectric point (IEP) was determined according to the method described by Aichour et al. (2018), Bello et al. (2015), and Inyinbor et al. (2015). This method is based on the pH change recorded after reaching the chemical equilibrium while controlling the ionic strength with a 0.1 M KCl solution. For this analysis, we considered pH values of 2, 4, 6, 8, and 10 and a concentration of the bioadsorbent of 2 g L−1. The procedure is as follows: a given volume of a 0.1 M aqueous KCl solution is prepared, and the initial pH (pHi) is adjusted to a given value (using 0.1 NaOH or 0.1 M HCl). The solution is brought in contact with the bioadsorbent ASk or ASe and kept in agitation for 48 h at room temperature. After the time has elapsed, the final pH value (pHf) is measured and recorded. This procedure is repeated for all considered pH values. Then, the pH value at the IEP is obtained graphically when plotting the pH change ΔpH = pHf-pHi as a function of the pH. The pH value at the IEP corresponds to the zero intersection of the curve.

2.4 Analytic Methods

The UV–Vis absorbance spectrum of RhB at different pH was measured with a Hach DR6000 spectrophotometer to observe the chemical stability of RhB. Fig. S1 in the supplementary material shows these spectra, at pH 1.91, 3.02, 4.01, 6.01, and 11.61. The RhB dye has different absorbance peaks in the UV–Vis region for a 12 mg L−1 concentration. The absorption bands correspond to the main functional groups of the dye molecule (see Fig. S1 in the SM): the chromophore group containing the structure amino (NH+) absorbs in the visible region in 0.556 μm at pH 1.91, 3.02, and 4.01, and in 0.554 μm at pH 6.01 and 11.61. The chromophore group shift is attributed to the charge separation, in which the carboxylate anion (R) takes a proton at acid pH, resulting in (R+), which accepts the same resonant structures and therefore exhibits a similar absorption spectrum with a shift in the chromophore group.

The removal process of RhB was evaluated from its characteristic absorption peak at 0.556 μm (pH 3) and 0.554 μm (pH 5, 7, and 9). Absorption spectra of the samples in the wavelength range 0.2–0.7 μm were measured with a spectrophotometer Evolution 300 Thermo Scientific, with a spectral interval of 0.004 μm. pH measurements were conducted with a HANNA pH meter, calibrated with standard buffer solutions of 3.01 ± 0.02 and 7.01 ± 0.02 (25 °C).

2.5 Bioadsorption Capacity Test

The adsorption tests of ASk and ASe bioadsorbents were studied by RhB dye removal. Experiments were carried out in a system with hydrodynamic batch operation and constant stirring to obtain a homogeneous adsorbent suspension, controlling temperature to a defined value. The adsorption process efficiency relies on several factors. In this work, the evaluated factors are the adsorbent concentration (0.5, 1, 2, 3 g L−1), adsorbate concentration (6, 12, 24, 36, 48, 60, and 72 mg L−1), pH (3, 5, 7, and 9), and temperature (30, 40, 50, 60, and 70 °C).

The experimental procedure is as follows. The synthetic colored solution was prepared by dissolving the required amount of RhB (0.6, 1.2, 2.4, 3.6, 4.8, 6.0, and 7.2 mg) in 0.1 L of deionized water to get the desired concentration. The initial pH of the solution was adjusted to 3, 5, 7, or 9 through a nitric acid solution (1% vol.) or potassium hydroxide (1% weight). At this time (t = t0), the first sample was taken. Then 0.5, 1, 2, or 3 g L−1 of ASk or ASe bioadsorbents was added to the synthetic-colored solution under constant stirring. The adsorption process was carried out for 240 min to reach the adsorption/desorption equilibrium. Samples were taken at 15, 30, 60, 120, 180, and 240 min. For each sample, the bioadsorbent was separated by centrifugation at 7500 rpm for 2 min to analyze the evolution of the RhB dye concentration by UV–Vis spectroscopy. All experiments were performed in triplicate.

3 Results

3.1 Characterization

3.1.1 Composition

The adsorption behavior of biomaterials depends on their chemical composition, and such effects must be evaluated to avoid drawing incorrect conclusions about the process. Table 1 shows the composition of ASk and ASe bioadsorbents. The ASe bioadsorbent possesses higher moisture content than ASk, which can be attributed to the ASe’s higher adsorption capacity of water molecules. The volatile matter content (hemicellulose, cellulose, and lignin) is similar for both samples. The ASk bioadsorbent has a higher fixed carbon value and ash content than the ASe bioadsorbent. The authors (Rotta et al., 2016) reported an ash content of 5.43 ± 0.49%, consistent with the results of this work, related to the minerals present in avocado skin. These compositions offer the possibility of employing this residue for food products.

Table 1 ASk and ASe bioadsorbent composition

The leaching of the minerals on the ASk and ASe bioadsorbents under acidic conditions (pH 3) was determined by ICP-MS. The mineral content is shown in Table 2. The results show higher P, K, Ca, and Zn leaching for the ASk bioadsorbent concerning ASe. This can be attributed to the higher mineral content in avocado skin than in seeds, corroborating results presented in Table 1.

Table 2 ASk and ASe bioadsorbents composition. The relative standard deviation is indicated in parentheses

3.1.2 X-ray Diffraction

XRD patterns for ASk and ASe bioadsorbents are shown in Fig. 2. The diffraction peaks in the XRD pattern of ASk and ASe are consistent with those reported in the literature (Pereira et al., 2021), with a peak at 2θ = 15.1° characteristic of cellulose I, according to JCPDS 00–056-1718 (Ishikawa et al., 2015). For both materials, a low-intensity peak at 2θ = 21.9° is observed, associated with a cellulose crystalline region (Pereira et al., 2021). For residual biomass resources, the degree of crystallinity depends on the sample’s composition. For example, Pereira et al. (2021) report that materials composed of lignin, cellulose, and hemicellulose have a low crystallinity. This agrees with our results, where we observed that both materials have undefined broad peaks.

Fig. 2
figure 2

XRD patterns of a ASk and b ASe bioadsorbents

3.1.3 X-ray Photoelectron Spectroscopy

Figures 3 and 4 present the X-ray photoelectron spectroscopy results for ASk and ASe bioadsorbents, respectively. These spectra show peaks centered at 285, 400, and 532 eV, corresponding to C1s, N1s, and O1s, respectively. Nevertheless, the peak associated with the N-containing functional group is low due to the low nitrogen content in both biomaterials.

Fig. 3
figure 3

XPS spectra of ASk bioadsorbent

Fig. 4
figure 4

XPS spectra of ASe bioadsorbent

To identify the functional groups containing oxygen and carbon in the ASk and ASe bioadsorbents, the major O1s and C1s peaks were deconvoluted, see Figs. 3 and 4. The C1s peak was deconvoluted into four individual curves from the groups listed in Table 3, where the relative content of each component is presented for both bioadsorbents: C = C present in lignin at 284.35 to 248.46 eV; C–C in cellulose and hemicellulose at 284.94–285.15 eV; CO in hydroxyl, phenol, or ether groups at 285.92–286.17 eV; C = O in carbonyl, ester, or carboxyl groups at 287.20–287.30 eV; and π-π* transitions in the aromatic carbon at 288.56–288.88 eV (Araújo et al., 2023; Lan et al., 2019; Q.-X. Liu et al., 2019). These C-containing functional groups are present in hemicellulose, cellulose, and lignin polymers, corroborating XRD results (see Fig. 2).

Table 3 Deconvolution results of C1s spectra of ASk and ASe bioadsorbents

In turn, the O1s peak was deconvoluted into three individual curves (see Figs. 3b and 4b) from the groups listed in Table 4 and its relative contents of each component present in ASk and ASe bioadsorbents. O1 at 531.17–531.27 eV is assigned to C = O binding, O2 at 532.26–532.92 eV corresponds to C–O binding, and O3 at 533.25–533.82 eV to C–OH (Araújo et al., 2023; Lan et al., 2019). The ASk and ASe bioadsorbents have O-containing functional groups on their surface, which are effective adsorption sites.

Table 4 Deconvolution results of O1s spectra of ASk and ASe bioadsorbents

The deconvolution data shows that the ASk bioadsorbent contains mainly hemicellulose and cellulose (C–C, C–O, C–OH groups in higher proportion), and in lower proportion lignin (C = C and C = O groups). In contrast, the ASe bioadsorbent has a higher proportion of C = C groups, corresponding to lignin.

3.1.4 FT-IR Spectroscopy

The FT-IR spectra of the bioadsorbents ASk and ASe are shown in Fig. 5. Since both materials have a similar composition, their corresponding spectra are alike. In the FT-IR spectra, the broadband around 3280 cm−1 corresponds to the stretching vibration of the H–O–H band. The band observed between 3000 and 2820 cm−1 is attributed to asymmetric and symmetric C–H sp3 stretching of alkane compounds (Berrazoum et al., 2015; Enahoro Agarry, 2016; Mokhtari et al., 2021). A weak signal at 1726 cm−1 is related to the C–O group stretching of the ester group (Inyinbor et al., 2015), while the band in the region of 1600 cm−1 due to the C = O stretching vibrations of carbonyl structure (Berrazoum et al., 2015; Besegatto et al., 2021). The band between 1200 and 1059 cm−1 corresponds to the vibrations of the C–OH group, present in alcohols (Cheng et al., 2017; Pereira et al., 2021). All these functional groups are present in the cellulose structure. In the region from 900 to 650 cm−1, some bands associated with the out-of-plane bending mode of C–H or O–H groups are present (Cheng et al., 2017). Finally, at 900 cm−1, we observe a characteristic peak of glycosidic linkages in cellulose (Mokhtari et al., 2021; Netto et al., 2019). The functional groups identified by IR spectroscopy are consistent with those identified by XPS (see Figs. 3 and 4), which correspond to hemicellulose, cellulose, and lignin polymers.

Fig. 5
figure 5

FT-IR spectra of ASk and ASe bioadsorbents

3.1.5 Thermogravimetric Analysis

TGA analysis of ASk and ASe bioadsorbents was carried out under an oxygen atmosphere during the whole characterization, from ambient temperature up to 850°C. This analysis allowed the evaluation of the biosorbents’ stability.

Figure 6 shows the weight percentage loss and weight derivative as a function of the sample temperature for ASk and ASe bioadsorbents. As observed, both bioadsorbents exhibit similar thermal behavior. The main composition of the ASk and ASe bioadsorbents are hemicellulose, cellulose, and, to a lesser extent, lignin, lipids, and fats (see Table 1, and minerals in Table 2) (Paniagua et al., 2021), consistent with XPS and FT-IR results (see Figs. 3, 4, and 5, respectively). The weight loss process is mainly due to the decomposition of hemicellulose and cellulose, considered volatile matter. In literature, the decomposition ranges are reported as hemicellulose at 190–320°C, cellulose at 280–400°C, and lignin at 320–450°C (Paniagua et al., 2021).

Fig. 6
figure 6

Weight loss and weight derivative as a function of the sample temperature for a ASk and b ASe bioadsorbents

3.1.6 N 2 Adsorption/Desorption

The BET surface areas of ASk and ASe bioadsorbents were determined in the range 0.05–0.30 P/P0, where the linearity of the BET equation is satisfied. The determined values of the BET areas are 0.4249 and 0.6112 m2 g−1 for ASk and ASe, while their corresponding total pore volumes are 0.0014 and 0.0016 cm3 g−1, respectively. Natural bioadsorbents have a low area surface compared to other synthesized activated biomass. This is due to the low synthesis temperatures (50 to 100°C), where the biomass carbonation does not occur. BET surface area and total pore volume values for natural bioadsorbents from avocado seed have been reported in the literature as 2.16 m2 g−1 and 0.0105 cm3 g−1 in Netto et al. (2019), and 1.75 m2 g−1 and 0.0039 cm3 g−1 in Bazzo et al. (2015), respectively, while Boeykens et al. (2019) reported values from 0.0813 to 0.1276 m2 g−1 and 0.0001 cm3 g−1, which are of the order to those determined in this work. According to the moisture content analysis, see Table 1, the ASe bioadsorbent has a higher capacity to adsorb water molecules related to its higher surface area when compared to the ASk bioadsorbent.

It is important to note that structural and morphological modification of the materials can increase the surface area at the cost of increased energy or chemical consumption. However, this does not guarantee a greater capacity for adsorption since other factors influence the process.

3.1.7 Microscopy

Figure 7 shows the micrographs of the fresh bioadsorbents recovered and valorized from avocado skin and seed. Their microstructures are disordered matrices in which polysaccharide spheres, in the order of 2 μm for ASk and 16 μm for ASe, are bound together. The morphology of both bioadsorbents is typical of natural bioadsorbents (untreated) and agrees with those reported by Bazzo et al. (2015), Netto et al. (2019), and Sangaré et al. (2022). We can observe cracks on both materials. However, pores are not visible, which is consistent with the obtained low total pore volume (0.0014 and 0.0016 cm3 g−1 for ASk and ASe bioadsorbents, respectively), and consequently, their corresponding low surface areas (0.4249 and 0.6112 m2 g−1 for ASk and ASe) and characteristic of natural bioadsorbents (Pereira et al., 2021).

Fig. 7
figure 7

Microscopy of a ASk and b Ase bioadsorbent

3.1.8 Isoelectric Point

Figure 8 shows the pH change (ΔpH = ΔpHf − ΔpHi) as a function of pH, as described in Sect. 2.3. The intersection of the curve with ΔpH = 0 corresponds to the pH value at the isoelectric point. The pH values at the isoelectric point are 5.09 and 4.50 for ASk and ASe, respectively. The behavior observed in Fig. 8 is consistent with that reported by Bazzo et al. (2015) for a natural bioadsorbent of the avocado seed. Table 5 presents the pH-IEP values for different natural or activated bioadsorbents.

Fig. 8
figure 8

pH isoelectric point for ASk and ASe bioadsorbents

Table 5 pH-IEP for bioadsorbents

For pH values below the IEP, the ASk or ASe adsorbents have a positive surface charge and act as an ion exchanger. Conversely, the surface charge of ASk or ASe adsorbents is negative at pH values above the corresponding IEP, which benefits the cation adsorption.

3.2 Dye Removal by Bioadsorption

Evaluating the bioadsorption capacity of ASk and ASe adsorbents requires determining the experimental conditions for pH, the concentrations of adsorbent and adsorbate, and temperature. The values of interest for these variables were selected according to those reported in the literature for rhodamine B adsorption (Inyinbor et al., 2015; Z. Liu et al., 2022). We achieved this by carrying out a set of experiments for each variable. The following results are discussed in terms of the dye removal percentage. Namely, we evaluate the dye RhB concentration change in time t (Ct) compared to the initial RhB concentration (C0). This change is given by Eq. (1).

$$Removal, \%=\frac{{C}_{0}-{C}_{t}}{{C}_{0}}\times 100$$
(1)

To evaluate the influence of pH variation on the RhB structure during adsorption, solutions of RdB 12 mg L−1) were prepared at pH values of 3, 5, 7, and 9 in absence of ASe and ASk adsorbents. The concentration of RhB was measured at 0, 60, 120, 180, and 240 min. The degradation profiles of RhB at indicated pH values are shown in Fig. S2 in the SM. These results show that pH does not significantly affect RhB concentration. Therefore, the RhB removal is attributed to the adsorption process under the conditions explored in the present work.

3.2.1 pH Effect

The pH value is relevant in adsorption processes because it modifies the adsorbent’s surface charge and the adsorbate’s ionization. Therefore, we first investigate the bioadsorbent’s adsorption capacity under different pH values.

The removal of RhB dye with ASk and ASe bioadsorbents at pH 3, 5, 7, and 9 is presented in Fig. 9. For this purpose, we take the initial concentration of ASk or ASe bioadsorbent and adsorbate (RhB) within the reported ranges (Liu et al., 2022), namely 2 and 12 mg L−1, respectively. The temperature of the adsorption process was 30 °C. As seen in Fig. 9, the removal percentage is inversely proportional to the pH value, namely, the higher removal was obtained at pH 3 for both biomaterials. The RhB removal after 240 min at pH 3 is 88 and 94% for ASk and ASe, respectively. Note that for the ASk bioadsorbent at pH 5, 7, and 9, a similar removal is achieved (66, 67, and 63%, respectively) although, at early stages, more significant differences are observed. This is not the case for the bioadsorbent ASe, which exhibits a similar behavior for the pH values referenced, and whose differences lie within the experimental deviation.

Fig. 9
figure 9

RhB removal profiles at different pH values for both bioadsorbents; 2 g L−1 of adsorbent, dye concentration 12 mg L−1, 30 °C

The influence of the pH value on the removal of RhB dye may be related to the electrostatic interactions between the adsorbate and the bioadsorbent (Al-Gheethi et al., 2022). Namely, at a given pH, the electrostatic interactions between the partial surface charge of the bioadsorbents and the cationic or anionic behavior of RhB influence the adsorption mechanism. In Sect. 3.1.8, the pH value in the IEP was determined as 4.50 for ASe and 5.09 for ASk. Therefore, at pH 3, where the bioadsorption process is higher, ASk and ASe have a partially positive charged surface and zwitterions of RhB (pKa = 3.7) coexistence. Thus, the adsorption mechanism may result from (i) the HO-π interactions or hydrogen bonding between the functional groups –OH and –OOC of the ASk or ASe bioadsorbents (see Fig. 5) and zwitterions of rhodamine (Zimnitsky et al., 2006), or (ii) the electrostatic interaction between the positive surface charge of the bioadsorbent and the negatively charged carboxyl groups of the RhB molecule (Al-Gheethi et al., 2022; Bello et al., 2015; Inyinbor et al., 2015).

Our observations are consistent with results for RhB removal, in which the process reached the highest adsorbate removal values at pH 3, using other bioadsorbents from agricultural residues such as Banyan aerial roots modified (Fan et al., 2020), Raphia-Hookene (88.88% removal) (Inyinbor et al., 2015), Gmelina Abores (91% removal) (Bello et al., 2015), Argemone mexicana (70% removal) (Khamparia & Jaspal, 2016), Irvingia gabonesis (78.6% removal) (Inyinbor et al., 2015), and Moringa Oleifera (94.76% removal) (Bello et al., 2015).

At pH above 5, the ASk and ASe bioadsorbents have a negative surface charge, and RhB has an anionic behavior, leading to an electrostatic repulsion between RhB molecules and the material. Therefore, the process can be attributed to hydrogen bonding with the hydroxyl groups of the bioadsorbents ASk and ASe (see Fig. 5) (Fan et al., 2020).

3.2.2 Adsorbent Concentration

The effect of the amount of ASk and ASe bioadsorbent was studied at four different concentrations: 0.5, 1, 2, and 3 g L−1. The experimental conditions of the removal process were at pH 3, where the adsorption process achieved the highest removal percentage. In turn, we used an adsorbate (RhB dye) concentration of 12 mg L−1 at 30 °C.

The removal profiles of RhB dye using ASk and ASe bioadsorbents at the different adsorbent concentrations (0.5, 1, 2, and 3 g L−1) are presented in Fig. 10. As shown, the percentage removal increases with the bioadsorbent concentration for both bioadsorbents. Other works obtained similar results (Al-Gheethi et al., 2022; Asiagwu et al., 2013; Enahoro Agarry, 2016). These results can be attributed to a higher bioadsorbent concentration, increasing the available adsorption sites for the RhB dye to adsorb. Nevertheless, no significant enhancement is observed for 3 g L−1 of absorbent with respect to a concentration of 2 g L−1. This indicates that the maximum adsorption capacity of these bioadsorbents has been reached, which is consistent with other reported values (Al-Gheethi et al., 2022; Enahoro Agarry, 2016). The saturation of the materials can be attributed to partial aggregation of the adsorbents, decreasing the number of available sites. Finally, it is noteworthy that ASe biomaterial outperforms the percentage removal of ASk for all adsorbent concentrations, which can be attributed to the larger surface area of the ASe (0.6112 m2 g−1) than that of the ASk bioadsorbent (0.4249 m2 g−1).

Fig. 10
figure 10

RhB removal profiles at different adsorbent concentrations for both biomaterials. pH 3, dye concentration 12 mg L−1, 30 °C

3.2.3 Initial RhB Dye Concentration

The effect of the initial RhB dye concentration on the adsorption process was investigated at seven different values: 6, 12, 24, 36, 48, 60, and 72 mg L−1. The experimental conditions for the RhB dye removal process correspond to those obtained in the previous analyses: pH 3 and bioadsorbent concentration (for both ASk and ASe) of 2 g L−1. As in previous cases, the adsorption process was carried out at 30 °C. The removal profiles for both bioadsorbents at the given RhB dye concentrations are presented in Fig. 11. As shown, the RhB dye removal percentage decreases with increasing adsorbate concentration, consistent with values reported in other works (Al-Gheethi et al., 2022; Asiagwu et al., 2013). This can be attributed to the fact that as the adsorbate concentration (dye RhB) increases, more molecules compete for the available adsorption sites.

Fig. 11
figure 11

RhB removal profiles at different adsorbate concentrations for both biomaterials. pH 3, 2 g L−1 of adsorbent, 30 °C

For the ASk bioadsorbent, the percentage removal (at a contact time of 240 min) is 86, 84, 75, 66, 50, 40, and 35% at 6, 12, 24, 36, 48, 60, and 72 mg L−1, respectively. As for ASe, the corresponding percentages are 96, 94, 88, 64, 61, 56, and 46%, respectively. Namely, with ASe, a higher removal is obtained than with ASk.

3.2.4 Temperature Effect

Temperature is a parameter that influences the adsorption process, as it affects the activation energy (Wang et al., 2020). Thus, in this section, we investigate the effect of temperature on the adsorption capacity. Four different temperatures (40, 50, 60, and 70 °C) were tested and compared with those obtained at 30 °C. The temperature effect has been studied for three RhB concentrations (12, 24, and 48 mg L−1), selected based on previous results. The experimental conditions were those used in the last case: a pH 3 and bioadsorbent (ASk and ASe) concentration of 2 g L−1. The removal profiles of RhB dye using ASk and ASe bioadsorbents at different temperatures for 12, 24, and 48 mg L−1 RhB concentrations are presented in Figs. 12 and 13, respectively.

Fig. 12
figure 12

Profiles removal dye RhB at pH 3: a 12, b 24, and c 48 mg L−1 of adsorbate and 2 g L−1 of adsorbent for different temperatures 30, 40, 50, 60, and 70 °C for ASk bioadsorbent

Fig. 13
figure 13

Profiles removal dye RhB at pH 3: a 12, b 24 and c 48 mg L−1 of adsorbate and 2 g L−1 of adsorbent for different temperature 30, 40, 50, 60, and 70 °C for ASe bioadsorbent

The RhB dye removal profiles for the ASk bioadsorbent (see Fig. 12) show a similar behavior: a slight enhancement in the adsorption process from 30 to 50 °C (being more pronounced with 12 and 48 mg L−1 of adsorbate) followed by a larger drop at higher temperatures (more significant for 12 and 24 mg L−1). This decrease can be attributed to a reduction in the surface activity by the degradation of the material occurring above 50 °C and acid conditions (pH 3). Aksu and Tezer (2000) reported a similar behavior in removing Remazol Black B dye with a Rhizopus arrhizus bioadsorbent. As for the ASe bioadsorbent (Fig. 13), the tendency described for ASk was observed just for an adsorbate concentration of 24 mg L−1. For 12 and 48 mg L−1, RhB concentrations exhibit a monotonous decrease in dye removal as the temperature increases for most of the adsorption process, being steeper the change from 50 to 70 °C (up to 40%).

The results for ASk, in which increasing temperature from 30 to 50 °C favors the absorption process, suggest an endothermic process. Conversely, for the ASe bioadsorbent, temperature increase does not favor absorption, suggesting an exothermic process. This will be elucidated by a thermodynamic analysis described in the next section.

3.3 Thermodynamic Analysis

Investigating the influence of temperature on the adsorption process requires determining the change in the thermodynamic parameters enthalpy (ΔH0), Gibbs free energy (ΔG0), and entropy (ΔS0) for both bioadsorbents. These parameters are indicators of the possible nature of adsorption (Mokhtari et al., 2021) and were evaluated using the following equations: (2) and (3)

$${\text{ln}}{K}_{d}=\frac{\Delta {S}^{0}}{R}-\frac{\Delta {H}^{0}}{RT}$$
(2)
$${\Delta G}^{0}=-RT{\text{ln}}{K}_{d}$$
(3)

where R is the universal gas constant (8.314 J mol−1 K−1), \({K}_{d}=\rho ~ {q}_{e} / {C}_{e}\) represents the thermodynamic equilibrium constant, and T (in K) is the absolute temperature at which the experiment was performed (30, 40, 50, 60, and 70 °C). Given the low RhB concentration, we take the fluid density ρ as \(\rho\approx\rho_{{\text{H}_2}{\text{O}}}=1000 \;\text{g} \;\text{L}^{-1}\).

The change in enthalpy (ΔH0) and entropy (ΔS0) was obtained graphically from the ln Kd vs 1/T plot. The experimental data obtained for each RhB concentration (12, 24, and 48 mg L−1) and temperature (30, 40, 50, 60, and 70 °C) were fitted to the model given by Eq. (2), to obtain the parameters ΔH0, and ΔS0. The values of the thermodynamic parameters ΔH0 and ΔS0 are presented in Table 6, and the change in the Gibbs free energy in Table 7.

Table 6 Enthalpy change and entropy change of ASk and ASe bioadsorbents
Table 7 Gibbs free energy change in kJ mol−1 of ASk and ASe bioadsorbents

Table 6 shows that the adsorption process for ASe bioadsorbent is exothermic (ΔH0 < 0) and reversible (ΔS0 < 0) for the three adsorbate concentrations. Namely, as the adsorbate concentration increases, the amount of energy generated during the adsorption process decreases, and the process tends to become irreversible and stable. This behavior is more evident for the ASk bioadsorbent, where the nature of the process changes from exothermic to endothermic (ΔH0 > 0) and irreversible and stable (ΔS0 > 0) at a concentration of 48 mg L−1. These findings are consistent with those observed in Sect. 3.2.4. In turn, the negative values in the Gibbs free energy change (ΔG0 < 0) presented in Table 7 indicate a feasible and spontaneous adsorption process in all cases for both bioadsorbents. Moreover, the decrease of the Gibbs free energy while temperature increases indicates that the adsorption process is more spontaneous and thus is more efficient at low temperatures.

3.4 Kinetics Parameters

The study of adsorption kinetics is relevant as it provides information on the adsorption mechanism and extra- and intra-particle matter transfer phenomena that may control the adsorption rate, ultimately affecting the process efficiency. Pseudo-first- and pseudo-second-order kinetic models have been used to describe the adsorption process in an aqueous solution (Sahu & Singh, 2019). The study of adsorption kinetics is relevant as it provides information on the adsorption mechanism, which ultimately affects the process efficiency. Namely, extra- and intra-particle matter transfer phenomena may control the adsorption rate. Pseudo-first- and pseudo-second-order kinetic models have been used to describe the adsorption process in aqueous solution (Sahu & Singh, 2019).

The bioadsorption equilibrium time was analyzed using the methodology described in Sect. 2.5. Experimental data from the adsorption process, explained in Sect. 3.2, were fitted to both linearized kinetic models using the least squares method. The two kinetic models were pseudo-first-order (for physisorption process, Eq. (4)) and pseudo-second-order (for chemisorption, Eq. (5)) (Cheng et al., 2017; Pereira et al., 2021; Wang et al., 2020), given as

$${\text{ln}}\left({q}_{e}-{q}_{t}\right)={\text{ln}}{q}_{e}-{K}_{1}t$$
(4)
$$\frac{t}{{q}_{t}}=\frac{1}{{K}_{2}{q}_{e}^{2}}+\frac{1}{{q}_{e}}t$$
(5)

where K1 [min−1] and K2 [g mg−1 min−1] are the pseudo-first- and pseudo-second-order adsorption equilibrium constants. In turn, qe [mg g−1] and qt [mg g−1] are the amount of RhB dye adsorbed at equilibrium and at a given time t, respectively, and can be obtained experimentally from the following expressions

$${q}_{e}=\frac{\left({C}_{0}-{C}_{e}\right)V}{m}$$
(6)
$${q}_{t}=\frac{\left({C}_{0}-{C}_{t}\right)V}{m}$$
(7)

with C0 (mg L−1) as the initial RhB dye concentration and Ct (mg L−1) as the dye concentration at a time t (min). Ce (mg L−1) is the RhB dye concentration at the adsorption equilibrium, m (g) is the bioadsorbent mass (for ASk or ASe), and V (L) is the total volume of the system.

The fitting of experimental results to the kinetic models, Eqs. (4) and (5) were performed for the results obtained for ASk and ASe adsorbents at the considered pH values (3, 5, 7, and 9), adsorbent concentrations (0.5 to 3 mg L−1), adsorbate concentrations (6 to 72 mg L−1), and temperatures (30, 40, 50, 60 and 70 °C). Tables 8 and 9 resume the kinetics parameters (K1, K2, and qe), for ASk and ASe bioadsorbents using the pseudo-first-order and pseudo-second-order models. Fittings have coefficients of determination (R2) higher than 0.9080 for the pseudo-first-order model and higher than 0.9504 for the pseudo-second-order model. The fittings to the pseudo-first- and second-order kinetic models for the different pH values, adsorbent and adsorbate concentrations, and temperatures are shown in Figs. S3-S8 in the SM.

Table 8 Kinetic parameters for the pseudo-first-order model for ASk and ASe bioadsorbents
Table 9 Kinetic parameters for the pseudo-second-order model for ASk and ASe bioadsorbents

From Table 8 and 9, the fit has coefficients of determination (R2) between 0.90 and 0.99. For the pseudo-second-order model (see Table 8 and 9), the lower coefficient of determination is 0.95.

From the data for pH, the highest pseudo-first- and pseudo-second-order kinetic constants, K1 and K2, are obtained at pH 3 for both bioadsorbents. The corresponding kinetic constants have comparable values for pH 5, 7, and 9. These results corroborate that the optimum pH value is 3, at which the highest adsorption rate is achieved.

Regarding the bioadsorbent concentration, a different behavior was observed for ASe and ASk. For seed, the higher the ASe concentration, the higher the pseudo-first- and second-order kinetic constants, with maximums of 0.1354 ± 0.0087 min−1 and 0.0985 ± 0.0050 g mg−1 min−1, respectively, for a concentration of 3 mg L−1. For the ASk bioadsorbent, a minimum is observed in both models for a concentration of 1 g L−1. In the first-order model, the maximum of K1 occurs at 2 g L−1 (0.1161 ± 0.00005 min−1), while K2 is maximum at 3 g L−1 (0.0602 ± 0.0003 g mg−1 min−1) in the second-order-model. In addition, the bioadsorbent’s equilibrium bioadsorption capacity reduces with increasing the bioadsorbent concentration. In Enahoro Agarry (2016), the authors reported a similar behavior. This is due to the larger amount of adsorbent, which provides a larger surface area for the same amount of adsorbate, resulting in less adsorbate per gram of adsorbent.

In turn, from the results for RhB concentration, we observe for both bioadsorbents that the equilibrium bioadsorption capacity increased monotonically with the initial RhB dye concentration from 6 to 60 mg L−1 (see Table 8 and 9). Nevertheless, qe decreases for 72 mg L−1, which can be attributed to increased competition of RhB molecules for the available active sites. To say, lower competition for the surface active sites at low adsorbate concentrations leads to a higher adsorption rate and vice versa. Note that for both bioadsorbents, the pseudo-first kinetic model led to similar values for K1 at RhB concentrations of 6 and 12 mg L−1 (considering the corresponding standard deviation). On the other hand, for the ASk bioadsorbent, the values of the pseudo-first- and second-order adsorption constants decrease with increasing RhB adsorbate concentration (see Table 8 and 9). From these results, the pseudo-second-order model better describes the behavior of the process for both bioadsorbents (see Fig. S5 in SM) (Enahoro Agarry, 2016). The inverse relation between most of the adsorbate concentrations and their corresponding kinetic values is similar to that obtained by Inyinbor et al. (2015). In their work, (Inyinbor et al., 2015) studied the RhB removal with activated Irvingia gabonensis bioadsorbents at pH 3, 50 mg L−1 of RhB, and with an adsorbent concentration of 1 g L−1. The reported values of the pseudo-first- and second-order kinetic constants were 0.019 min−1 and 0.006 mg g−1 min−1, respectively. In this work, under similar conditions (a concentration of RhB and ASk of 48 mg L−1 and 2 g L−1 at pH 3), K1 and K2 were 0.0563 min−1 and 0.048 mg g−1 min−1, respectively. For the pseudo-first-order kinetic model, the kinetic constants are in the same order of magnitude, with a faster adsorption rate for ASk than with Irvingia gabonensis. Moreover, the constant values have a different order of magnitude for the pseudo-second-order model. This may be due to the mass transfer limitations of the activated bioadsorbent since it is a porous material.

Exploring five different temperatures for three RhB concentrations showed that skin-derived bioadsorbent was more affected than seed bioadsorbent during adsorption. For ASk, the equilibrium adsorption capacity, qe, has no significant change in the temperature range from 30 to 60 °C for 12 and 24 mg L−1 adsorbate concentrations, after which a decrease is observed. For 48 mg L−1, a higher variation is observed for temperatures below 50 °C and after this value, which is also observed for Ase. For ASe, higher equilibrium adsorption capacities are obtained for 12 and 24 mg L−1 adsorbate concentrations. On the other hand, for the ASk and ASe bioadsorbent, the adsorption rate is not influenced significantly. Although the kinetic constants present variations, they are within the average deviation (see Table 8 and 9). Nevertheless, all adsorbent concentration cases exhibited similar behavior in which the adsorption capacity (better shown in Figs. S6-S8 in the SM) presents a maximum at a given temperature at 40 or 50 °C, depending on the experimental conditions.

Finally, exploring five different temperatures allowed us to identify that the adsorption process is more affected for the skin-derived bioadsorbent than for seed bioadsorbent. For the ASk bioadsorbent, the equilibrium adsorption capacity, qe, for 12 and 24 mg L−1 adsorbate concentrations has no significant change in the temperature range from 30 to 60 °C. For a temperature of 70 °C, in Table 8 and 9, a decrease in the value of qe were observed. While for 48 mg L−1, it observes that an increase in temperature from 30 to 40 °C increases the amount of adsorbed dye. However, for higher temperatures, there are no changes in the values that are not observable; even at 70 °C, the value of qe also decreases, as occurred with 12 and 24 mg L−1.

For ASk and ASe bioadsorbents, both kinetic models exhibit a maximum absorption rate at 60–70 °C. On the other hand, for the ASk and ASe bioadsorbent, the adsorption rate is not influenced significantly. Although the kinetic constants present variations, they are within the average deviation (see Table 8 and 9). Figures S6-S8 compare the experimental (marker) and theoretical (dashed and solid lines) bioadsorption capacity of skin (left column) and seed (right column).

Avocado waste has also been used to remove other dyes. Bazzo et al. (2015) studied the removal of crystal violet dye with a natural bioadsorbent from waste avocado seed at pH 7 and 25 °C. For this experiment, the authors considered a dye concentration of 50 mg L−1 and an adsorbent concentration of 4 g L−1. They report the kinetic constants for a pseudo-first- and pseudo-second-order models as 0.2154 min−1 and 0.03080 g mg−1 min−1 with determination coefficients close to unity. In turn, Asiagwu et al. (2017) investigated the amaranth dye removal in the presence of 40 mg L−1 of the waste avocado seed, for which they determined the corresponding kinetic constants as 0.057 min−1 (R2 = 0.336) for pseudo-first-order and 30.94 g mg−1 min−1 (R2 = 0.999) for the pseudo-second-order model. In our work for ASe with a concentration of RhB of 48 mg L−1, K1 = 0.0795 ± 0.0066 min−1 and K2 = 0.0056 ± 0.00009 g mg−1 min−1. As observed, the values of K1 are consistent with those reported in the literature, but K2 obtained in Asiagwu et al. (2017) and Bazzo et al. (2015) are higher than in our case. This can be explained by the higher bioadsorbent concentration used by the authors, in contrast to the concentration used in this work, which implies more sites available on the adsorbent surface. In Mallampati et al. (2015), the authors studied the bioadsorption of the dyes alcian blue, methylene blue, neutral red, and brilliant blue using activated avocado skin. Their experimental conditions were pH 7, 30 °C, 100 mg L−1 of adsorbate, and 10 g L−1 of adsorbent. The values they obtained for K2 ranged from 0.0033 to 0.0432 g mg−1 min−1. In turn, Netto et al. (2019) studied methylene blue (100 mg L−1) adsorption by avocado seeds (1 g L−1). They reported pseudo-first- and pseudo-second-order adsorption kinetics of 0.095 min−1 (R2 = 0.995) and 0.0016 g mg−1 min−1 (R2 = 0.994), respectively. The values reported by Mallampati et al. (2015) and Netto et al. (2019) agree with those reported in our work (see Table 8 and 9).

Finally, from the adsorption capacity plot as a function of time, shown in Figs. S3-S8 in SM, it is observed that during the first minutes of contact (within the first 15–30 min), the adsorption capacity increases rapidly due to a large number of available binding sites. This process is followed by a slowdown in the absorption capacity, leading to a plateau caused by the saturation of adsorption sites. It is noteworthy to highlight three facts: (i) for the majority of the experimental conditions of both bioadsorbents, around 70–90% removal (of the adsorption/desorption equilibrium) is reached within the first hour of contact; (ii) under similar conditions, seed-derived material owns a higher adsorption capacity than ASk due to its higher surface area; and (iii) the pseudo-second-order kinetic model represents more precisely the experimental behavior of the ASk and ASe bioadsorbents. Similar results have been reported by Mallampati (2015) for activated avocado skin and other adsorbents (Aichour et al., 2018; Bello et al., 2015; Berrazoum et al., 2015). From the above results, it is possible to elucidate that the adsorption mechanism is dominated by chemisorption.

3.5 Adsorption Isotherm Model

Adsorption isotherm models are valuable in designing absorption processes and optimizing adsorbent usage. These models rely on the adsorption properties and equilibrium data that have been determined experimentally and depend on the physicochemical conditions of the interactions (Naderir, 2015). In this work, the Freundlich and Langmuir models, given by Eqs. (8) and (9), were used to evaluate the maximum adsorption capacity of the bioadsorbents. The experimental data were obtained from the results of the bioadsorption process at equilibrium, considering pH 3, 2 g L−1 of ASk or ASe adsorbents, and different RhB concentrations (6 to 72 mg L−1).

$${\text{ln}}{q}_{e}={\text{ln}}{K}_{F}+\frac{1}{n}{\text{ln}}{C}_{e}$$
(8)
$$\frac{1}{{q}_{e}}=\frac{1}{{q}_{max}}+\frac{1}{{q}_{max}{K}_{L}}$$
(9)

The fitting parameters for the Langmuir and Freundlich models are given in Table 10 and 11, respectively, for both biomaterials. The results show a better fitting of the Langmuir model for both bioadsorbents. This indicates that the adsorption process of the RhB dye molecules on the bioadsorbent is a monolayer. Namely, the interaction between the groups on ASe and ASk bioadsorbents (see Figs. 3, 4, and 5) and RhB molecules play a key role in the effective adsorption.

Table 10 Langmuir adsorption parameters of ASk and ASe bioadsorbents
Table 11 Freundlich adsorption parameters of ASk and ASe bioadsorbents

From the Langmuir model (see Table 10), the monolayer adsorption capacity (qmax) for ASk and ASe are 13.1240 ± 0.0806 and 17.9998 ± 0.6233 mg g−1, respectively. A higher adsorption capacity is obtained for the ASe bioadsorbent, which can be attributed to its higher number of functional groups, such as carbonyl, carboxyl, esters, ether, methoxy, and hydroxyl (see Table 3 and 4), since it contains lignin, cellulose, and hemicellulose. As for the ASk bioadsorbent, the functional groups are mainly C–O and C–OH (see Table 3 and 4) for its lower lignin content. This decrease in the functional groups of ASk leads to lower adsorption capacity. For comparison, Table 12 presents the maximum adsorption capacity for different absorbates and natural or activated bioadsorbents. The corresponding concentrations are provided for each case. Note that the high maximum adsorption capacities reported for several materials correspond to activated and structured bioadsorbents that inherently own larger surface areas than natural bioadsorbents (as in this work). Nevertheless, the maximum adsorption capacity for ASk and ASe agrees with reported results under similar conditions.

Table 12 Maximum adsorption capacity

In addition to previous parameters, it is important to determine whether the adsorption process is favorable. This can be accomplished by the separation factor RL (also referred to as the equilibrium parameter), given by Eq. (10)

$${R}_{L}=\frac{1}{1+{K}_{L}{C}_{0}}$$
(10)

with C0 as the initial adsorbate concentration and KL as the Langmuir constant, related to the adsorption energy. If 0 < RL < 1, the process is favorable. The process is irreversible if KL ≫ 1 (RL∼0) and linear if KL = 0 (RL = 1).

We consider that the adsorbate concentrations used in this investigation, from 6 to 72 mg L−1, leads to a separation factor of 0.0376 ≤ RL ≤ 0.3196 for ASk and 0.0183 ≤ RL ≤ 0.183 for ASe, respectively. Since RL is in the range 0–1, it confirms the favorable removal of the RhB process under the explored conditions. In addition, lower RL values at higher RhB dye concentrations suggest that the absorption was more favorable for these conditions as it approaches the irreversible condition (RL → 0). This is consistent with the results obtained from the thermodynamic analysis, Sect. 3.3: the process tends to be irreversible for higher adsorbate concentrations (see Table 6). In Asiagwu et al. (2013) and Mallampati et al. (2015), the authors reported a favorable adsorption process using avocado seed and skin, with values of 0.008 ≤ RL≲1, consistent with our results.

3.6 Adsorption Mechanisms

As described in Sect. 3.1.8, the pH values at the IEP are 5.09 and 4.50 for ASk and ASe, respectively. Below these pH values (pH 3 in our case), the surface of the bioadsorbent is positively charged, and zwitterions of RhB (pKa = 3.7) coexist. Therefore, the adsorption mechanism of RhB onto the bioadsorbent is likely due to electrostatic interaction between the positively charged surface of the bioadsorbent and the negatively charged carboxyl groups of RhB. After the adsorption process, FT-IR analysis of the bioadsorbent samples confirmed the findings. Figure 14 compares the FT-IR spectra before and after the adsorption process. A band of higher intensity assigned to the carboxyl group (at 1650 cm−1) was identified in FT-IR spectra of both bioadsorbents after the adsorption process. At 1590 cm−1, a group can be associated with the NH amino group of RhB adsorbed on the bioadsorbents. The presence of C–O (923 cm−1) and –C–O–C (1180 cm−1) groups can be attributed to π-π interactions with functional groups.

Fig. 14
figure 14

Comparison of FT-IR spectra before and after the adsorption process for a ASk and b ASe bioadsorbent

3.7 Reusability

Applying the adsorption process in pollutant removal requires materials to be stable under operation conditions and reuse (cycling). Figure 15 compares the RhB dye removal by ASk and ASe bioadsorbents. The stability study was performed for five cycles with a contact time of 240 min each. The experiments were carried out at pH 3, a concentration of 2 g L−1 of bioadsorbent and 12 mg L−1 of RhB, as detailed in Sect. 2.5. At the end of the adsorption process, the bioadsorbent (ASk and ASe) was recovered, dried at room temperature, and used in the next experiment. This procedure was repeated for each cycle. As observed, the removal rate of ASk bioadsorbent decreases from 88.41 in the first cycle to 75.50% in the fifth cycle, with a similar percentage (∼80%) in the second, third, and fourth cycles. As for the ASe bioadsorbent, the removal dropped from 91.19% in the first cycle to 78.10% in the last one, which in most cases outperformed the removal of ASk biomaterial.

Fig. 15
figure 15

Removal dye RhB at pH 3, 12 mg L−1 of adsorbate, and 2 g L−1 at 30 °C for five cycles of reusability for skin and seed bioadsorbents

Figure 16 shows the micrograph of the materials after the adsorption process at pH 3. As can be seen, the morphology of both bioadsorbents changes from smooth spheres (see Fig. 7) to fibrous structures. This can be attributed to the decomposition of the cellulose polymers and leaching processes during the adsorption process at the experimental conditions (temperature and pH) (Costa et al., 2021).

Fig. 16
figure 16

Microscopy of a  ASk and b ASe spent bioadsorbents

After several adsorption cycles, the bioadsorbent will exhaust until it reaches the desired performance, and in this case, the spent bioadsorbent must be regenerated for further reuse. The regeneration processes involve solvent (Inyinbor et al., 2015; Mokhtari et al., 2021; Yadav et al., 2022), wash (Yadav et al., 2022), acid (Bello et al., 2015; Gupta & Jain, 2021) or caustic wash (Mallampati et al., 2015; Mokhtari et al., 2021), stream activation, and thermal regeneration (Sahu & Singh, 2019). It is worth mentioning that the regeneration process can be a source of contamination if suitable treatment is not implemented (Zhang et al., 2023). It is important to emphasize that the selection of the regeneration process for a natural bioadsorbent must be carried out under chemical and thermal conditions that guarantee the permanence of the properties of the bioadsorbent and its effectiveness in the removal process.

To establish a suitable methodology for the final disposal of the bioadsorbent, we must consider the adsorbate it contains. The methods that have been proposed include disposal in a landfill, incineration, and discharging into the ocean. However, the most used is landfill, since for incineration and discharge in the ocean, one must consider the cost of energy required to burn adsorbent and the regulatory restrictions on ocean disposal (Sahu & Singh, 2019).

4 Conclusions

The recovery and valorization of avocado processing by-products through novel sustainable approaches allow for converting these residues into high-value products, reducing their accumulation, disposal, and adverse environmental problems. This work evaluated the removal of RhB dye by the bioadsorption process. For this purpose, bioadsorbents derived from avocado skin (ASk) and seed (ASe) were synthesized by simple processes which can incorporate green energy technologies, such as solar drying for dehydration processes. ASk and ASe bioadsorbents were applied to remove rhodamine B under different experimental conditions for pH, dye concentration, bioadsorbent concentration, and temperature. The results of bioadsorption showed efficacy in the removal of the dye RhB. The highest percentages of dye removal were at pH 3 and 2 g L−1 of bioadsorbent.

The pseudo-second-order kinetic model can be successfully adopted to describe the bioadsorption process. The adsorption isotherm was fitted by the Langmuir and Freundlich models, with a better fitting by the Langmuir isotherm. The adsorption capacity of the RhB on ASk and ASe are 13.1240 and 17.9998 mg g−1 obtained at 30 °C and pH 3. The adsorption of RhB on ASk and Ase bioadsorbents is spontaneous, exothermic, and reversible. The results show that adsorption is more efficient at lower temperatures (30 °C).

Recycling the seed and skin of avocado peels is efficient and can be used in consecutive pollutant adsorption studies without considerable losses in their adsorption capacities at pH 3 and a temperature of 30 °C. ASk and ASe bioadsorbents are economically and environmentally viable alternatives for wastewater treatment in several production sectors or as a process to remove trace contaminants in water treatment plants.