1 Introduction

Over the past few decades, the use of water and hazardous chemicals has increased due to industrialization, urbanization, and agricultural expansion. This rapid expansion has had negative consequences for the environment, particularly in terms of water pollution (Bhavyasree & Xavier, 2021; Moosavi et al., 2020). Among the industries contributing to water pollution, the textile industry stands out (Iwuozor et al., 2021). It has a harmful impact on the environment primarily because of the waste generated, specifically the waste from synthetic dyes. Statistics indicate that the textile industry consumes an estimated 60% of the total dye production, with approximately 10–15% of these dyes ending up as waste (Çelekli & Bozkurt, 2013). Even at very low concentrations, the presence of dyes in water can impede the penetration of light into the water's surface, disrupting the photosynthesis of aquatic plants. Additionally, many of these dyes possess carcinogenic, mutagenic, teratogenic, and toxic properties, posing risks to humans, fish, and microorganisms (Abdel-ghani et al., 2017).

Coomassie Brilliant Blue (CBB/C45H44N3NaO7S2) and Methylene Blue (MB/C16H18N3SCl) are widely used dyes. CBB dye, which falls under the category of triphenylmethane dyes, has the potential to cause mutagenic and teratogenic effects on living organisms (Ibrahim et al., 2019; Priya et al., 2018). Exposure to CBB can lead to irritation in the eyes and digestive tract of living organisms (Thamer et al., 2019). Moreover, if CBB dye persists in the environment for an extended period, it can transform into a non-degradable and toxic organic pollutant (Abdel-Ghani et al., 2017). Another commonly employed dye in the industrial sector is methylene blue (MB) due to its favorable solubility. MB dye, an aniline-based dye, can have detrimental effects on microorganisms, animals, and humans, thereby contributing to environmental pollution. These adverse effects can be attributed to the complex and aromatically structured nature of MB dye, making it challenging to degrade (Jamwal et al., 2017). Given the negative consequences of uncontrolled dispersion of dyes in the environment, particularly in water bodies, it is crucial to implement measures for treating dye waste before its disposal into the environment.

Currently, a range of methods has been developed to mitigate pollution stemming from liquid waste, including physicochemical techniques like coagulation/flocculation, membrane separation, ion exchange, chemical oxidation, electrochemical processes, adsorption, and photocatalysis. These methods have been employed to eliminate dyes and metal ions from wastewater (Wong et al., 2016; Kanakaraju et al., 2017; Buhani et al., 2019; Katheresan et al., 2018; Elgarahy et al., 2021; Al-Hazmi et al., 2022; Annisa et al., 2022). Among these diverse approaches, adsorption methods are frequently utilized to treat liquid waste that contains toxic dyes (Buhani et al., 2019; Elwakeel et al., 2020). This preference is due to the simplicity, cost-effectiveness, and environmentally friendly nature of adsorption methods (Buhani et al., 2017; Elgarahy et al., 2019). Typically, the adsorption process employs adsorbents, which can be either synthesized or modified natural materials.

The effectiveness of using adsorption methods to treat dye wastewater relies heavily on the choice of adsorbent. Carbon is a natural and efficient adsorbent for removing pollutants originating from dyes. It can be derived from various carbon-rich sources, including plants containing lignin, like rubber fruit shells, which have a lignin content of 33.54%. As a result, rubber fruit shells hold significant potential for conversion into carbon with excellent adsorption capacity (Buhani et al., 2023; Zulaicha et al., 2022). However, the binding capability of carbon for these dye compounds is limited due to certain drawbacks. These include the relatively ineffective separation of the adsorbent from the filtrate during filtration and the lengthy centrifugation time required in the adsorption process (Rocha et al., 2020).

Enhancing carbon quality can be accomplished by activating it physically or chemically to produce activated carbon. However, the activation process is time-consuming and expensive. Therefore, in this research, the quality improvement of carbon derived from rubber fruit shells (nAC-RFs) was pursued without activation through an increased number of active sites using the silanization process. The aim of the silanization process, utilizing organosilane compounds like 3-Aminopropyl) triethoxysilane (APTES) (Wong et al., 2015), is to introduce functional groups as active adsorption sites.

Organosilane compounds act as coupling agents due to possessing two distinct active groups that are bonded to silica atoms within the molecule, thereby establishing chemical bonds between organic and inorganic materials (Huang & Hu, 2008). The APTES compound can generate silanol and siloxane groups, which are expected to enhance the adsorption capacity of non-activated carbon toward dyes (Liu et al., 2013). The -NH2 functional group in APTES offers a significant opportunity for connecting with other target molecules (Can et al., 2009). Additionally, the APTES compound exhibits two types of active groups that enable it to react with compounds having anionic, cationic, or neutral properties (Munguía-Cortés et al., 2017).

In this investigation, the modification of carbon derived from rubber fruit shells without activation (nAC-RFs) was achieved by utilizing a silanization agent derived from the APTES compound, resulting in the development of an adsorbent and nAC-RFs-S for the adsorption of CBB and MB dyes. Parameters such as kinetics, adsorption isotherms, and the reusability of nAC-RFs-S were employed to evaluate the effectiveness of the adsorbent in capturing both cationic and anionic dyes, allowing for the practical implementation of the adsorbent in addressing and mitigating the dispersion of toxic dyes, particularly in aquatic environments.

2 Materials and Methods

2.1 Materials

The study utilized carbon sourced from rubber fruit shells acquired from rubber plantations located in East Lampung Regency, Indonesia. Chemical substances including coomassie brilliant blue (CBB), methylene blue (MB), 3-Aminopropyl) triethoxysilane (APTES), HCl, NaOH, toluene, buffer solution, and ethanol were procured from the European Pharmacopoeia. KNO3 was also sourced from the European Pharmacopoeia.

2.2 The Production of Non-Activated Carbon (nAC-RFs) from Rubber Fruit Shells

The process begins with washing the rubber fruit shells and allowing them to dry under sunlight. Afterward, the shells are combusted inside an iron drum for around 6 h to generate carbon derived from the rubber fruit shells. Subsequently, the resulting carbon is finely crushed and filtered through a 100 μm mesh sieve (nAC-RFs).

2.3 Modification of nAC-RFs with APTES

The method for preparing nAC-RFs-S is based on the procedure described by Shirendev et al., 2021. Initially, 25 g of nAC-RFs was combined with a 250 mL solution of APTES (30% (vol) in toluene) and agitated for 3 h at 50 °C. Subsequently, the mixture was filtered, and the solid residue was washed with deionized water until it attains a neutral pH. The solid material was then dried in an oven at 110 °C for 4 h, yielding nAC-RFs-S as the final product.

2.4 Characterization

To analyze the functional groups, the nAC-RFs, and nAC-RFs-S samples were subjected to characterization using an FTIR spectrometer (Prestige-21 Shimadzu, Japan). The surface morphology and constituent elements were observed and identified by employing SEM–EDX (Zeiss MA10, SEM–EDX, Gottingen, Germany).

2.5 Determination of Zeta Potential Value

0.1 g of both nAC-RFs and nAC-RFs-S were added to a flask containing 20 mL of 0.1 M NaNO3 solution. Following that, the starting pH was adjusted within the range of 3 to 12 by using 0.1 M HCl solution for acidic conditions and 0.1 M NaOH solution for basic conditions. The solution was then stirred using a stirrer for 24 h. Subsequently, the resulting pH was observed and measured using a pH meter.

2.6 Adsorption by Batch Method

All adsorption procedures were carried out using the batch method. The adsorbent and adsorbate were mixed using a shaker (Stuart SSL1-OB—Shaker, Orbital, Lab Scale, 230 V) at a speed of 150 rpm. The primary experiment aimed to examine the impact of initial pH (pH0) within the range of 3.0—11.0. The initial pH was adjusted by adding either a 0.10 mol/L HCl or NaOH solution to the dye solution with an initial concentration (C0) of 10 mg/L and an adsorbent mass of 0.1 g at a temperature of 27 °C. The second experiment sought to investigate the influence of different contact times ranging from 0 to 150 min using a dye solution volume (V) of 0.025 L and C0 of 10 mg/L at 27 °C. Subsequently, an adsorption isotherm study was conducted similar to the kinetic procedure, but with varying sample concentrations from 0 to 300 mg/L at 27 °C. The effect of similar ions was also explored by interacting with a mixture of CBB dye solution, nitrate anion, and phosphate at concentrations of 0.1, 0.25, and 0.35 mmol/L, respectively. The adsorption process was carried out under specific conditions (pH0: 5.0; V: 0.025 L; t: 90 min; T: 27 ± 1 °C; agitation speed: 150 rpm; adsorbent mass: 0.1 g). In each experiment, the filtrate or residual dye solution was analyzed to determine its concentration using a spectrophotometer at respective wavelengths (λ) of 558.0, 664, 201, and 719 nm (Agilent Cary 100).

All adsorption experiments were repeated three times. The quantity of adsorbed dye (qt) at time t (min) and equilibrium (qe) were determined using Eqs. 1 and 2, while the percentage of adsorbed dye was calculated using Eq. 3.

$${q}_{t}=\frac{V}{W}({C}_{0}-{C}_{t})$$
(1)
$${q}_{e}=\frac{V}{W}({C}_{0}-{C}_{e})$$
(2)
$$Adsorption\;\left(\%\right)=\frac{(C_{0-}C_e)}{C_0}\times100$$
(3)

2.7 Reuse of Adsorbents

0.5 g of nAC-RFs-S was placed in a reaction tube. Afterward, 125 mL of either CBB or MB solution was added following specific conditions (C0: 300 mg/L; pH0: 5.0; t: 90 min; T: 27 ± 1 °C; agitation speed: 150 rpm). The CBB or MB adsorbate was subsequently desorbed using a 40% ethanol solution. The resulting filtrate and precipitate were separated, and the precipitate was washed with water until it reaches a neutral pH. It was then dried in an oven at 40 °C for 3 h. The adsorbent can be reused for the adsorption of CBB or MB dye for up to 5 repeated cycles.

3 Results and Discussion

3.1 Adsorbent Modification and Characterization

Figure 1 illustrates the procedure for transforming rubber fruit shells into nAC-RFs-S. Before executing the process outlined in Fig. 1, the acquired rubber fruit shells undergo a thorough rinse with running water to eliminate any impurities. Subsequently, the cleansed rubber fruit shells were sun-dried to reduce their moisture content. The next step involved carbonizing the rubber fruit shells in an iron drum for a duration of 6 h. The resulting carbon from the carbonization process retains a sizable particle size and must therefore be finely pulverized to yield nAC-RFs. Afterward, APTES was employed to modify the nAC-RFs via a silanization process.

Fig. 1
figure 1

The scheme for modifying nAC-RFs into nAC-RFs-S

In general, the process of silanization of nAC-RFs using APTES typically involves the hydrolysis of triethoxyl groups to form trihydroxyl groups, followed by the polycondensation of hydroxyl groups on the surface of nAC-RFs. Additionally, there are several potential reactions, including the interaction between silanol groups and hydroxyl groups after hydrolysis, resulting in the silanization of the nAC-RFs surface and the formation of nAC-RFs-S (Lee et al., 2004; Sahoo et al., 2021; Buhani et al., 2023).

Figures 2a and c demonstrate that both nAC-RFs and nAC-RFs-S display wide peaks in the wavenumber range of 3200—3600 cm−1, with a distinct peak at 3449 cm−1, indicating the presence of -OH groups. Furthermore, an absorption band is observed in the vicinity of 2368 cm−1, signifying the vibration of alkyl (C-H) groups. This observation is reinforced by peaks within the wavenumber range of 860–600 cm−1, specifically at 756 cm−1 for nAC-RFs and 725 cm−1 for nAC-RFs-S, indicating the existence of C-H bonds in both adsorbents. Additionally, there are absorption bands at wavenumbers 1620 cm−1 for nAC-RFs and 1627 cm−1 for nAC-RFs-S, indicating the presence of carboxylate groups (Martínez et al., 2006). In nAC-RFs-S (Fig. 2c), a peak at wavenumber 1527 cm−1 suggests the presence of N–H groups (Kosa et al., 2012; Radoičić et al., 2010), and a peak at wavenumber 1126 cm−1 is associated with the Si–O-C bond from APTES as a modifying agent (Fig. 2b) (Ahmad et al., 2017).

Fig. 2
figure 2

FTIR spectra of (a) nAC-RFs, (b) APTES, (c) and nAC-RFs-S

Figure 3 illustrates the surface characteristics and elemental composition of both nAC-RFs and nAC-RFs-S. In the case of nAC-RFs (Fig. 3a), the surface morphology reveals evenly distributed and uniform pores, along with pores of different sizes. However, upon modification with APTES, nAC-RFs-S (Fig. 3b) undergoes a reduction in surface porosity. This decrease is attributed to the binding of APTES to the carbon pores, which fills them with functional groups derived from APTES (Shirendev et al., 2021). Consequently, these alterations can influence the enhancement of adsorption capacity through the presence of functional groups on the adsorbent's surface. The occurrence of the silane agent's modification on nAC-RFs is supported by the EDX data presented in Fig. 3d, demonstrating the presence of diffraction peaks for nitrogen (N) and silicon (Si) elements originating from APTES, in addition to the carbon (C) and oxygen (O) elements found in nAC-RFs (Fig. 3c).

Fig. 3
figure 3

SEM–EDX (a, c) nAC-RFs and (b, d) nAC-RFs-S

3.2 The pHPZC Value of the Adsorbent

Determination of the value of pHPZC aims to determine the effect of pH on the surface charge of the adsorbent. The pHPZC value is obtained from the exact value that crosses the zero point on the resulting graph of the value between the initial pH and the difference between the initial pH and the final pH (Ai et al, 2011). The adsorbent surface charge will be negative at pH > pHPZC and positively charged at pH < pHPZC. In this study, the pHPZC values were obtained for nAC-RFs and nAC-RFs-S which exactly cut the zero point on the results graph. The value between the initial pH and the difference between the initial pH and the final pH was pH 7.09 and 9.02, respectively (Fig. 4).

Fig. 4
figure 4

The pHPZC value curves of (a) nAC-RFs and (b) nAC-RFs-S

3.3 Effect of pH Interaction

The optimal pH for each solution of methylene blue and CBB by adjusting the pH was determined within the range of 3–12. Figure 5 displays the relationship between the pH of the adsorbate and the quantity of dye adsorbed (qexp). By observing Fig. 5a, it is evident that nAC-RFs-APTES adsorbs a higher amount of CBB and MB dyes compared to nAC-RFs. The optimal pH for the adsorption of CBB and MB dyes by nAC-RFs-APTES is pH 5 for both. The adsorption of CBB dye by nAC-RFs is significantly affected by the pH interaction, while the influence on the MB dye is relatively minimal.

Fig. 5
figure 5

The influence of pH on dye adsorption of (a) CBB dan (b) MB by nAC-RFs dan nAC-RFs-S (C0: 10 mg/L; V: 0.025 L; T: 27 ± 1 °C; t: 60 min; Agitation Speed: 150 rpm; adsorbent mass: 0.1 g)

The data regarding pH interaction effects are closely linked to the surface charge of the adsorbent, determined through pHpzc determination (Fig. 4). This study revealed that nAC-RFs-S has a pHpzc value of 9.02, while the optimal adsorption of CBB and MB takes place at pH 5. Under acidic conditions, functional groups like hydroxyl and carboxylate on nAC-RFs, as well as amino groups from APTES on nAC-RFs-S, undergo significant protonation, resulting in a positive charge (An et al., 2020). Consequently, both adsorbents tend to possess a positive surface charge, leading to strong interactions with anionic adsorbates such as CBB, compared to cationic MB (Sharma et al., 2017). The anionic dye CBB is prone to adsorption under acidic conditions due to electrostatic interactions with the H+-rich surface of the adsorbent, yielding more favorable adsorption than under alkaline conditions. Moreover, at that specific pH, the interaction between MB and nAC-RFs and nAC-RFs-S is more likely to occur via cation exchange reactions since the positively charged surface of the adsorbent aligns with the positive charge of the MB dye. Furthermore, interactions can also occur within the pore cavities of the adsorbent (Buhani et al., 2023).

3.4 Effect of Interaction Time

Figure 6 illustrates how the duration of contact affects the adsorption of CBB and MB individually by nAC-RFs and nAC-RFs-S. This adsorption process involved varying contact times from 0 to 150 min. The quantity of CBB or MB adsorbed by the adsorbent (qexp) showed a relatively consistent increase after the initial 15 min until reaching a contact time of 150 min for nAC-RFs-S. This indicates that the adsorption equilibrium for both CBB and MB on the respective adsorbents is rapidly established. In Fig. 6a, it is evident that nAC-RFs-S exhibit higher adsorption of CBB compared to nAC-RFs. Conversely, in the case of MB adsorption (Fig. 6b), nAC-RFs demonstrate greater adsorption than nAC-RFs-S. This distinction can be attributed to the anionic nature of CBB, which favors interaction with a positively charged adsorbent surface. The presence of amino groups from the silane agent and hydroxyl groups on nAC-RFs results in a positively charged surface of the adsorbent at pH 5 due to protonation.

Fig. 6
figure 6

The influence of contact time on adsorption of (a) CBB and (b) MB by nAC-RFs and nAC-RFs-S (C0: 10 mg/L; pH0: 5.0; V: 0.025 L; T: 27 ± 1 °C; agitation speed: 150 rpm; adsorbent mass: 0.1 g)

3.5 Adsorption Kinetics

The rate at which the dye is adsorbed is determined by examining how the duration of contact during adsorption affects the amount of dye that becomes adsorbed, as depicted in Fig. 6. The data in Fig. 6 were subjected to analysis using mathematical models, namely the pseudo-first-order kinetic model (Eq. 4) and the pseudo-second-order kinetic model (Eq. 5) (Ho & McKay, 1999), which are presented below:

$$\mathit{log}(q_e-q_t)=\mathit{log}\;q_e-\frac{k_1}{2.303}t$$
(4)
$$\frac{t}{{q}_{t}}=\frac{1}{{k}_{2}{q}_{e}^{2}}+\frac{t}{{q}_{e}}$$
(5)

where qt and qe (mg/g) are total CBB or MB adsorption capacity at time t and equilibrium, respectively, k1 and k2 are the Pseudo-first order and Pseudo-second-order rate constants, respectively. The parameters of adsorption kinetics, such as the adsorption rate constant and regression coefficients of CBB and MB on nAC-RFs and nAC-RFs-S, are presented in Table 1.

Table 1 Characteristics of adsorption kinetics parameters for CBB and MB dyes by nAC-RFs and nAC-RFs-S (C0: 10 mg/L; pH0: 5.0; V: 0.025 L; T: 27 ± 1 °C; Agitation Speed: 150 rpm; adsorbent mass: 0.1 g)

In the equations, qt and qe (mg/g) represent the total adsorption capacity of CBB or MB at time t and equilibrium, respectively. The rate constants k1 and k2 correspond to the first-order and second-order kinetics, respectively. Table 1 displays the kinetic parameters including the adsorption rate constant and regression coefficients for CBB and MB on nAC-RFs and nAC-RFs-S.

By examining Table 1, it becomes evident that the adsorption of CBB and MB dyes by nAC-RFs and nAC-RFs-S tends to adhere to the pseudo-second-order kinetic model. This can be deduced from the high correlation coefficient (R2) values of both dyes on each adsorbent, which are both 0.999. Such findings indicate that the pseudo-second-order kinetic model is more appropriate compared to the pseudo-first-order kinetic model. According to the pseudo-second-order kinetic model, the adsorption process of CBB and MB dyes onto nAC-RFs and nAC-RFs-S involves not only physical interactions but also chemical interactions with the active groups present on the adsorbent (Buhani et al., 2021a). Moreover, the characteristic data of the adsorption kinetics listed in Table 1 demonstrate that the pseudo-second-order adsorption rate constant (k2) for CBB on nAC-RFs-S surpasses that of nAC-RFs. Furthermore, the k2 value for MB is higher on nAC-RFs. These observations align with the earlier discussion regarding the influence of pH, which elucidates the compatibility between the charge characteristics of the adsorbate and the active sites of the adsorbent.

3.6 Adsorption Isotherms

The impact of the initial concentration (C0) on the adsorption of CBB and MB by nAC-RFs and nAC-RFs-S is evident in Fig. 7. Based on the data presented in Fig. 7, it is noticeable that the adsorbed amounts of CBB and MB increase as the C0 of each dye rises. The steep rise in qexp at low C0, followed by further increments at high C0, signifies that nAC-RFs-S exhibits significantly higher adsorption affinity towards CBB in comparison to nAC-RFs. This enhanced adsorption can be attributed to the availability of active sites on the surface of the adsorbent (Atar et al., 2012). The presence of additional active adsorption sites in nAC-RFs-S, resulting from its modification with silane agents, contributes to this phenomenon. These supplementary active groups comprise amines, silanols, and siloxanes, in addition to the active sites already present in nAC-RFs, such as porous voids and hydroxyl groups.

Fig. 7
figure 7

Influence of initial concentration on adsorption of (a) CBB and (b) MB dye onto nAC-RFs and nAC-RFs-S (C0: 10–300 mg/L; pH0: 5.0; V: 0.025 L; t = 90 min; T: 27 ± 1 °C; agitation speed: 150 rpm; adsorbent mass: 0.1 g)

In addition, to determine the suitable adsorption isotherm models for CBB and MB by nAC-RFs and nAC-RFs-S, the data analyzing the effect of initial adsorbate concentrations (CBB and MB) on the adsorbed amount of adsorbate (Fig. 7a and b) were subjected to analysis using adsorption isotherm models. Two adsorption isotherm models, namely the Langmuir and Freundlich models, were employed in this research.

The Langmuir adsorption isotherm model explains that the adsorbent surface contains a specific number of active sites that are proportional to the surface area. Consequently, the adsorbent surface exhibits uniformity, and the adsorption process occurs in a monolayer manner, as represented by Eq. 6 (Álvarez-Torrellas et al., 2016; Buhani et al., 2021b).

$$\frac{1}{{q}_{e}}=\frac{1}{{q}_{m}{K}_{L}{C}_{e}}+\frac{1}{{q}_{m}}$$
(6)

In the given context, Ce (mg/L) represents the concentration of the dye solution at equilibrium, qe (mg/g) denotes the adsorption capacity of the dye at equilibrium, qm refers to the monolayer adsorption capacity of the adsorbent, and KL represents the equilibrium constant that reflects the affinity of binding sites (L/mg). Parameters like KL and qm can be determined by plotting a linear equation of log 1/qe versus Ce, resulting in a straight line with a slope of 1/qm KL and an intercept of 1/qm.

Additionally, the Freundlich isotherm model is an empirical equation employed for heterogeneous systems and adsorption at multiple layers (Shao et al., 2016). This model is expressed by Eq. 7.

$$\mathit{log}\;q_e=\mathit{log}\;K_F+\frac1n\mathit{log}\;C_e$$
(7)

KF is the adsorption capacity factor, expressed in ((mg/g) (L/mg)1/n), where n is the adsorption intensity factor ranging from 1 to 10 (Ho and McKay, 2001). The adsorption parameters, such as KF and n, are obtained by plotting log qe against log Ce.

Table 2 presents the analysis results of the adsorption parameters for CBB and MB by nAC-RFs and nAC-RFs-S using the Langmuir and Freundlich adsorption isotherm models.

Table 2 Langmuir and Freundlich parameters for the adsorption of CBB and MB dyes by nAC-RFs and nAC-RFs-S (C0: 10 mg/L; pH0: 5.0; V: 0.025 L; t = 90 min; T: 27 ± 1 °C; agitations speed: 150 rpm; adsorbent mass: 0.1 g)

Based on the data presented in Table 2, it can be observed that the adsorption behavior of CBB dye tends to align with the Freundlich adsorption isotherm model when using nAC-RFs, while it follows the Langmuir adsorption isotherm model when using nAC-RFs-S. Similarly, the adsorption of MB dye, for both nAC-RFs and nAC-RFs-S, tends to conform to the Freundlich adsorption isotherm model. These trends are evident from the R2 values obtained for each interaction between the adsorbent and adsorbate. The interaction between CBB and nAC-RFs-S exhibits characteristics consistent with the Langmuir adsorption isotherm model, indicating a dominant role of chemical interactions in the adsorption process. The presence of active groups, such as hydroxyl, amine, and carboxyl groups (Fig. 2), in nAC-RFs-S originates from both nAC-RFs and the APTES modifying agent.

Moreover, the adsorption of MB by both nAC-RFs and nAC-RFs-S also tends to follow the Freundlich adsorption isotherm model, as observed in the interaction between CBB and nAC-RFs. This suggests that the adsorption process is primarily governed by physical interactions, including pore cavities and ion exchange. The relatively smaller size of MB molecules compared to CCB contributes to their enhanced adsorption through the pore cavities of both nAC-RFs and nAC-RFs-S. This observation is supported by higher KF and n values in the nAC-RFs-MB interaction compared to nAC-RFs-S-MB. Specifically, the KF values are 2.132 and 1.669 (mg/g) (L/mg)1/n for nAC-RFs and nAC-RFs-S, respectively, while the n values are 1.207 and 1.103, respectively. The suitability of the n value in adsorption can be categorized as very good if it falls within the range of 2 to 10, satisfactory if it ranges from 1 to 2, and poor if it is below 1 (Liang et al., 2017).

3.7 The Influence of Similar Ions

The CBB dye, which has an anionic nature, exhibits strong adsorption affinity towards nAC-RFs-S. Consequently, the impact of similar ions was investigated by conducting adsorption competition experiments using nitrate and phosphate anions at concentrations of 0.1, 0.25, and 0.35 mmol/L on nAC-RFs-S. The findings of the adsorption competition are presented in Fig. 8. Analysis of the data in Fig. 8 reveals that across all three concentrations tested on nAC-RFs-S, the CBB dye is significantly more adsorbed compared to nitrate and phosphate ions. This outcome demonstrates the superior selectivity of nAC-RFs-S towards CBB. The presence of aromatic groups in the CBB molecule enhances the stability of the negative charge on its functional groups, thereby influencing the electrostatic interactions and π-π bonding between the adsorbent and the adsorbate (Yilmaz, 2022).

Fig. 8
figure 8

The influence of similar ions (nitrate and phosphate anions) on the amount of CBB adsorbed by nAC-RFs-S

3.8 The Ability of Reusability

The reusability of nAC-RFs-S as an adsorbent for CBB and MB is a crucial parameter for assessing the quality of the adsorbent. The purpose of reusing the adsorbent in multiple adsorption cycles is to maximize its effectiveness. Desorption of CBB and MB is carried out using a 40% ethanol eluent, which effectively removes the dyes from nAC-RFs-S by leveraging both physical and chemical interactions (such as electrostatic or cation exchange interactions) due to the polar nature of the solution. Figure 9 demonstrates that nAC-RFs-S can be reused for up to three cycles, with over 80% of the initially adsorbed CBB and MB still being desorbed. However, in the fourth adsorption cycle, there is a decrease in the amount of CBB and MB adsorbed, with percentages of 78.08 and 67.75%, respectively. This decline can be attributed to the desorption process and the neutralization of the adsorbent, which may impair the active sites of nAC-RFs-S (Buhani et al., 2023). Therefore, it can be concluded that nAC-RFs-S is an effective adsorbent that exhibits efficient adsorption of CBB and MB dyes and can be reused.

Fig. 9
figure 9

The reuse of nAC-RFs-S for CBB and MB adsorption

4 Conclusion

The modification of non-activated carbon derived from rubber fruit shells through APTES has successfully yielded the nAC-RFs-S adsorbent. The adsorption behavior of CBB on nAC-RFs-S tends to align with the Langmuir adsorption isotherm model, whereas MB conforms to the Freundlich adsorption isotherm model. The desorption of both CBB and MB from nAC-RFs-S can be easily achieved using polar solvents such as a 40% ethanol solution. The nAC-RFs-S adsorbent exhibits reusability in adsorption–desorption cycles for up to three repetitions, with CBB and MB displaying adsorption percentages exceeding 80%. With its substantial capacity and strong affinity towards anionic CBB and cationic MB dyes, nAC-RFs-S serves as an effective solution for mitigating water pollution caused by toxic synthetic dyes, irrespective of their cationic or anionic properties.