Introduction

Nowadays, some industries such as pulp manufacturing, cosmetics printing, plasticizing factories, petroleum products, pharmaceuticals, food processing industries, tanning and leather have a significant consumption of dye and water, therefore represent a potential source of colored wastewater production1,2,3,4. Dyes are classified into two groups of natural and synthetic. Synthetic dyes have three categories, including anionic, cationic, and non-ionic dyes5,6.

Actually, 17% of dye consumption refers to direct dyes in the textile industry related to the printing and dyeing of cotton, viscose, silk, wool and leather7. Direct dyes are in the group of anionic dyes. These dyes have one or more azo functional groups (N = N-) and are completely soluble in water. Discharge of direct dyes into water resources can cause damage to the ecosystem and is unpleasant aesthetically8,9,10,11. Furthermore, the nature of wastewater containing dye is characterized by its strong color, high concentration of organic matter, high amount of chemicals and auxiliaries, and poor biodegradability. Hence, it can cause pollution of water sources and affect human health12. Some of these adverse effects include skin sensitivity and irritation, cancer, genetic mutations, dysfunction of the kidneys, nausea, sweating, vomiting, confusion and headache13,14.

The use of common wastewater treatment methods to remove dyes is not effective due to their complex chemical structure and poor biodegradability15. Several physical, chemical and biological processes have been proposed to remove dyes from aquatic environments16. Some of these methods include membrane filtration, ozonation, advanced oxidation, reverse osmosis, coagulation and flocculation, ion exchange and adsorption17,18. Among these methods, adsorption has been considered due to its ease of operation, cost-effectiveness, no formation of by-products, insensitivity to toxic substances, fast process, high efficiency and high possibility of regenerating spent adsorbent19,20. One of the most common adsorbents used to remove various dyes and other pollutants is activated carbon (AC). Due to its high surface area, high porosity and low cost, this adsorbent is proposed for the removal of organic dyes from textile industry wastewater21,22.

Using expensive natural material such as coal or wood to prepare AC is not economical. AC made from agricultural residues or biomass and industrial wastes such as leaves, shells, seeds, and straw, due to its good chemical stability and ability to be used on a large scale, can be a suitable alternative to expensive adsorbents to adsorb different types of pollutants from aquatic media23. Recently, various types of agricultural waste such as straw (wheat and corn), plant peel (pistachio and almond), bamboo plant, rice shell, sawdust, fruit peel (orange peel, banana, coconut, kiwi and potato) and palm residues have been used to prepare AC24,25,26.

Sesame seed is an agricultural product that has been utilized in the confectionery, edible oil, cake and flour industries since ancient times. Various sesame processing industries are active in Yazd, Iran. Sesame seed processing produces a large volume of waste, especially in the peeling stage. These wastes are usually disposed of as useless solid waste in the environment, which in turn causes environmental pollution. Therefore, it is necessary to manage and, if possible, use these wastes optimally. The transformation of sesame waste into a cheap bio-adsorbent leads to economically valuable materials17. The sesame seeds processing industry is one of the most common industries in Yazd, and the waste of sesame shell created big problems for the environmental in terms of disposal and management. Therefore, the aim of the present study was to apply the waste sesame shell provided sesame seeds-processing companies from local factory, Yazd, Iran, and uses them to produce AC. In addition, the efficiency of AC produced from sesame shell was assessed to remove direct brown 103 (DB103) dye, which is one of the most conventional dyes used in the textile industry. According to the research, there is no literature that assesses AC prepared from sesame shell for direct dye removal from aqueous solution. Response surface methodology-Box-Behnken design (RSM-BBD) was applied to design experiments and optimize process parameters such as pH, contact time, initial dye concentration and adsorbent dose. Also, the kinetics, adsorption isotherm and thermodynamics of the dye adsorption process on the AC prepared from sesame shell were evaluated.

Materials and methods

Materials

Direct dyes were the products of BEZEMA, CHT, Germany. Sesame shells were obtained from a local sesame processing company in Yazd, Iran. Also, Na2SO4, NaCl, Na2HPO4, CaCl2, phosphoric acid (H3PO4), hydrochloric acid (HCl, 37%), and sodium hydroxide (NaOH) were purchased from Merck Company (Germany).

Synthesis of AC from sesame shell

At first, sesame shells were washed with distilled water for dust removal and dried at 100 °C for 24 h in the oven. Then, sesame shells were sieved through a 45 mesh to make the sesame shell particles uniform. Sesame shells were immersed in phosphoric acid with a weight ratio of 1:1 for the chemical activation, and then the samples were dried in an oven at 100 °C. The dried sesame shells obtained from the previous process were placed inside a muffle furnace (TEF1200-30–9 H and V, Aspeng co, Iran) under a flow of nitrogen gas for 2 h at a temperature of 500 °C to carbonize. The pyrolyzed sample was boiled in HCl solution for 20 min and washed several times with 0.1 M HCl solution and distilled water until to reached a neutral pH. At the end, samples were dried at 120 °C for 12 h27.

Characterization of the adsorbent

In order to determine the characteristics and morphology of AC, various methods were employed. Fourier transform-infrared (FTIR) spectroscopy (AVATAR, Thermo, USA) was applied to identify the functional groups of the adsorbent; a scanning electron microscope (SEM) (MIRA III, TESCAN, Czech Republic) was used to analyze the structure and chemical composition of the AC. Also, the Sear method was used to measure the specific surface area of the adsorbent28. 0.5 g AC and 10 g NaCl were poured into 50 ml of 0.1 M HCl. Then the solution was mixed with a magnetic stirrer. Titration of the resulting mixture was carried out in a water bath at 298 K by standard 0.1 M NaOH to pH 4, and then it was continued to pH 9. The specific surface area was calculated by the following equation:

$$\:S=32v-25\:$$
(1)

where S (m2/g) and V (mL) are the specific surface area and the volume of NaOH required to raise the pH from 4 to 9, respectively.

Preparation of stock solution of Direct Brown 103

In this study, direct brown 103 (DB 103) dye was used to evaluate the efficiency of activated carbon prepared from sesame shell. For this purpose, a certain amount of dye powder was dissolved in distilled water and its stock solution was obtained. The stock solution was diluted to different concentrations for use in other steps of the experiments. The molecular formula of direct brown 103 (DB103) dye is C26H15ClN5Na3O13S3 and the molecular weight of the dye is 806.04 g/mol.

Adsorption experiments

The impact of independent variables including pH, contact time, initial dye concentration, adsorbent dose, ionic strength and reusability on DB103 dye adsorption was assessed.

The adsorption experiments of DB103 dye onto AC prepared from sesame shell was carried out under Box–Behnken design. Firstly, the adsorbent with a predetermined dose (1–5 g/L) was added to a 50 mL Erlenmeyer flask containing 25 mL of DB103 dye solution (5-100 mg/L). The pH of the dye solution was adjusted by NaOH (0.1 M) and HCl (0.1 M) in the range of 3–8. A shaker (Teif Azma Teb, TAT 2138, Iran) was employed to mix the solution at 200 rpm with a duration time between 2 and 30 min. The concentration of DB103 dye before and after adsorption was measured through the colorimetric method by UV-VIS spectrophotometer (HACH, DR 6000, USA) at 438 nm wavelength. The removal efficiency and the adsorption capacity of the DB103 dye were determined by Eqs. (2,3).

$$\:E\left(\%\right)\:=\:\frac{{C}_{0}-{C}_{e}}{{C}_{0}}$$
(2)

where, Co (mg/L) and Ce (mg/L) are the concentrations of the dye at initial and equilibrium, respectively.

$$\:{q}_{e}=\frac{{C}_{0}-{C}_{e}}{m}V$$
(3)

where, V (L) is the volume of dye solution; and m (g) is the mass of AC29.

After determining the optimal conditions by the model, the effect of other variables such as temperature, competitor ion and reusability on the amount of dye adsorption was investigated. Also, the effectiveness of AC adsorbent prepared from sesame shell in removing other direct dyes was evaluated. Kinetics and isotherms of the adsorption process were studied at various times and concentrations.

Experimental design

The response surface methodology30 was used to design the experiments by Design-Expert software (version 7, trial, Stat-Ease). In this study, the effect of factors including the adsorbent dose (1–5 g/L), the initial DB103 dye concentration (5-100 mg/L), contact time (2–30 min) and pH (3–8) by Box-Behnken design, which is one of the standard RSM methods, was evaluated. The operational ranges and codes of each factor is presented in Table S1.

Mathematical model Eq. (4) demonstrates the optimum value and effect of each factor during the adsorption process of DB103 dye on AC prepared from sesame shell:

$$\:{Y=\beta\:}_{0}+{\sum\:}_{i=1}^{k}{\beta\:}_{i}{X}_{i}+\:{\sum\:}_{i=1}^{k}{\beta\:}_{ii}{X}_{i}^{2}+{\sum\:}_{i=1}k\:{\sum\:}_{j=1}k{\beta\:}_{ij\:\:}{X}_{i\:}{X}_{j}+\epsilon\:$$
(4)

where, Y (%), β, and k are the calculated response value, the model coefficient constant and the number of independent factors, respectively. Xi and Xj are coded independent factor values. Bi, Bii and Bij are linear, quadratic, and interactive coefficient terms, respectively. ε is the value of the error random term. All four variables were optimized based on the Box-Behnken design. In addition, the data were analyzed by analysis of variance. The significance of expressions was determined by p-value assessment (p-value < 0.05).

Results and discussion

Characterization of the adsorbent

Activated carbon was prepared from sesame shell (Fig. 1. a and b) and its characteristics were investigated. SEM analysis was carried out to get information about the morphology and distribution of the main elements in the sesame shell and the prepared AC. By comparing the SEM images (Fig. 1. c and d), it is clear that the AC prepared from the sesame shell has a porous surface, which confirms the sesame shell was successfully activated by phosphoric acid. The atomic percentage of the C (65.88%) element in AC is higher than that of raw sesame shell (C = 55.17%), which demonstrated that the AC was successfully synthesized. The distribution of elements on the surface of AC and raw sesame shell was illustrated in Figs. 131,32. It clarifies that elements were homogeneously distributed on the adsorbent surface. The specific surface area of ​​AC prepared from sesame shell was 525 m2/g, indicating the prepared natural adsorbent has a relatively high specific surface area and is useful for adsorbing DB103 dye molecules.

The functional groups on the surface of the adsorbent had been assessed by FTIR analysis. The identification of functional groups is based on the information given in Fig. 1 (i). The peak at 3431 cm− 1 and 3460 cm− 1 could be related to OH groups derived from interlayer crystal water. The peaks of 2918 cm− 1 and 2851 cm− 1 were associated with C-H stretching vibration. Peaks of 1653 cm− 1 and 1617 cm− 1 were connected to C = C vibrational stretching. Also, the stretching bands at 1435 cm− 1 and 1371 cm− 1 confirmed the C-O, O-H and C-H vibrations, respectively. The peak of 1054 cm− 1 was related to the OCH3 groups, which may be attributed to the lignin aromatic groups. The band around 1015 cm− 1 can be assigned to C-O-C groups. The stronger peak at 1576 cm− 1 was assigned to the C = C group, which it manifested sesame shell was activated favorably33,34.

Fig. 1
figure 1

The images of (a) sesame shell, (b) AC prepared from sesame, (c) the SEM of sesame shell, and (d) the SEM of AC prepared from sesame shell. Elemental analysis maps for C (e and f) and O (g and h) elements. FTIR spectra (i) of sesame shell and AC.

Box-Behnken design

The adsorption experiments were designed based on the Box-Behnken model. At first, similar studies were reviewed, and then the variable ranges were determined by conducting experiments and preliminary studies35,36,37. In Table S2, 29 experiments were performed and the results of each were presented. The relationship between the actual and predicted response values ​​for DB103 dye adsorption by the adsorbent is shown in Fig. 2(a). The accuracy of the model is desirable and guaranteed when the experimental results are very close to the values ​​calculated by the model, which is well shown by the plot of the actual and predicted values. Figure 2(b) shows the normal probability of the residuals for DB103 dye removal efficiency. It clearly indicates that the error terms are normal, and the selected regression model was appropriate because the residual points are close to a straight line38.

Fig. 2
figure 2

(a) The plot of the experimental data against predicted data, and (b) Normal probability plot for DB103 dye adsorption on AC.

Analysis of variance

In this study, analysis of variance was used to assess the significance of the model parameters. The ANOVA and multiple regression coefficients of the adsorption of DB103 dye are presented in Table 1. For each significant model term, the higher F-value and lower P-value were considered indexes of the models significance. The quadratic model was further confirmed by a p-value less than 0.0001 and F-value of 91.79. Also, the lack of fit F-value of 3.40 does not depend on pure error significantly, and the 12.50% chance of a lack of fit F-value cannot cause disruption. In other words, the value of lack of fit was not significant, and it would be admissible. R² value (0.9892) was larger than 0.90 which implies the high correlation of the model. The predicted R² value was 0.9427, and the adjusted R² was 0.9784. The difference between these two quantities is less than 0.2, hence, there is reasonable compatibility between the predicted and adjusted R² values. Adeq precision, measuring the signal-to-noise ratio, was 39.382, which illustrated that a ratio greater than 4 and it was an adequate signal.

Evaluation of regression coefficients was carried out by polynomial regression model. The regression model is presented as Eq. (5):

$$\begin{aligned} Dye\:removal\:\left( \% \right) & = + 42.27 - \left( {12.68*A} \right) + \left( {17.86*B} \right) - \left( {16.95*C} \right) \\ & \quad + \left( {1.92*AB} \right) - \left( {1.26*AC} \right) - \left( {2.27*AD} \right) - \left( {3.08*BC} \right) + \left( {1.50*BD} \right) + \left( {0.4439*CD} \right) \\ & \quad - \left( {4.15*A^{2} } \right) - \left( {7.27*B^{2} } \right) + \left( {6.99*C^{2} } \right) - \left( {5.56*D^{2} } \right) \\ \end{aligned}$$
(5)

The synergistic and antagonistic effects were shown by positive and negative signs, respectively. Generally, contact time and adsorbent dose had a synergistic effect on DB103 dye adsorption, while pH and DB103 dye concentration had an adverse effect.

Table 1 Analysis of variance for DB103 adsorption onto the adsorbent.

Interactive effect of parameters

The contact time plays a very important role in the adsorption process. The dye removal efficiency according to the changes in different variables is exhibited in Fig. 3, indicating that the adsorption of DB103 by AC prepared from raw sesame shell increased as the contact time (2–30 min) increased. This phenomenon may be related to the increased probability of DB103 dye molecules interacting with vacant sites on the surface of the adsorbent39. Baloo et al. evaluated the efficiency of AC produced from empty fruit bunches and mesocarp fibers of oil palm in methylene blue and acid orange 10 dye removal. Results indicated that the removal efficiency of the studied dyes increased with increasing contact time9. Also, Feng et al., in a similar study, concluded that the dye removal efficiency increases with rising time40. Another important controlling parameter in the adsorption process is the pH value of the solution.

As shown in Fig. 3 (a), (b), (c), the dye removal percentage decreased with increasing pH from 3 to 8. Two possible mechanisms for dye adsorption onto the adsorbent may be considered: (a) an electrostatic interaction between the adsorbent and the dye molecule, (b) a chemical reaction between the dye and the adsorbent. At pH 3, due to the acidity of the solution, the concentration of \(\:{\text{H}}^{+}\)ions increase, so the positive charge on the AC surface enhances. It should be noted that when the pH increases, the number of negatively charged sites on the surface of AC increases and the number of positively charged sites decreases, and due to electrostatic repulsion, it prevents the adsorption of negatively charged DB103 dye. The reason can be due to the existence of additional \(\:{\text{O}\text{H}}^{-}\:\)ions, which causes competition with anionic dyes for adsorption on the adsorbent surface41.

In the similar studies, Thinakaran et al. worked on removing acid red 114 as an anionic dye from wastewater using AC prepared from seeds shell. Results of experiments illustrated that dye adsorption at pH 3 had the highest removal efficiency34. Also, Amin et al. found that dye removal was more efficient at low pH42. Based on the findings shown in Fig. 3 (b), (d) and (e), the variation in removal efficiency is such that as the dye concentration rises from 10 to 100 mg/L, the efficiency of AC to remove DB103 dye decreases. It can be claimed that each adsorbent can adsorb a certain amount of dye after a specified time due to the occupation of the active sites of the adsorbent surface. With increasing the initial dye concentration, the available surface for adsorbing DB103 dye molecules is severely limited, and the dye removal declines33. The findings reported by Srinivasan et al.43 and Raji et al.44 show that the relationship between dye concentration and adsorption efficiency is inverse. Increasing the adsorbent dose from 1 to 5 g/L provides the active surfaces available for the adsorption of DB103 dye (Fig. 3 (a), (d) and (f)). It can be asserted that, despite the low contact time, a high adsorbent dosage has a notable effect on the dye removal efficiency45. Zayed et al. investigated removing methyl orange via AC which was synthesized by leaves of sugar beet. According to the experiments, the removal percentage of methyl orange increased from 76.9 to 98.5% with the rise in the studied adsorbent mass in the range of 20 to 30 g46. The results presented in a similar study conducted by Tahir et al.47 and Ramutshatsha-Makhwedzha et al.48 show that the percentage of pollutant removal enhanced with the raising of the adsorbent dose.

Fig. 3
figure 3

The 3D surface plots for DB103 adsorption on the AC prepared from sesame shell.

Optimization

Optimization reveals the optimal conditions of the factors of the adsorption system in order to achieve the highest removal efficiency in the design of the adsorption process. In this study, according to the statistical model, the optimal values of variables were adsorbent dose 4.8 g/L, contact time 19 min, initial dye concentration 12 mg/L and the pH 3. Under optimal conditions, the experimental DB103 dye removal efficiency of 84.85% was very close to the predicted value (84.4%), which indicates the validity of the selected model. Furthermore, by comparing the pollutant removal percentage results between AC and raw sesame shell, it can be concluded that AC had a better performance than raw sesame shell (32.32%) for adsorbing DB103 dye. Figure S1 illustrated the images of dye solution before and after DB103 dye adsorption on the AC in the optimal condition.

Adsorption kinetic studies

The kinetic models were used in order to investigate the variables that affect the adsorption and interaction between AC and DB103 dye molecules. The adsorption pathway of DB103 dye was studied using pseudo-first-order, pseudo-second-order and intra-particle diffusion kinetic models. The pseudo-first-order kinetic is presented by Eq. (6):

$$\:{log}\left({q}_{e}-{q}_{t}\right)={log}{q}_{e}-\:\frac{{k}_{1}}{2.303}t\:$$
(6)

where, qe (mg/g) and qt (mg/g) are the amounts of dye adsorbed by AC at equilibrium and at time t, respectively. K1 (1/min) is the rate constant of the pseudo-first-order model. The pseudo-second order kinetic calculation is shown in the Eq. (7):

$$\:\frac{t}{{q}_{t}}=\frac{1}{{k}_{2}{q}_{e}^{2}}+\frac{t}{{q}_{e}}\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:$$
(7)

where, K2 (g/mg/min) is the pseudo-second-order rate constant, and other symbols have the same meaning as it is mentioned in pseudo-first-order equations. The intra-particle diffusion (IPD) model presented by Weber and Morris is as follows to identify the diffusion process38,49:

$$\:{q}_{t}={k}_{p}{t}^{1/2}+C$$
(8)

where, Kp and C are the IPD rate constant (mg/g, 1/min1/2) and the intercept (mg/g) respectively. Also, the results of kinetic constants are presented in Table 2.

Among the three presented models, the pseudo-second-order model can be applied to the entire adsorption process due to its high correlation coefficient (R2 = 0.989) and this model is better than the other two models to describe DB103 dye adsorption on the AC prepared from sesame shell. The control of the adsorption process is provided by chemical interactions in the pseudo-second-order model, due to its alignment with the kinetic parameters50 which means electron exchange occurred via involvement of valence force between the direct dye and AC48. In similar study by Hudaverdi et al. reported that adsorption of malachite green dye on the sesame shell follows pseudo-second-order kinetic model17.

Table 2 Kinetic parameters for DB103 dye adsorption onto the prepared AC.

Adsorption isotherm studies

The adsorption isotherm examines the adsorption mechanism at the active sites of the adsorbent surface, and its results provide useful information51. It shows how much pollutant has been removed by a unit of adsorbent mass (equilibrium state) and how much is left52. The Langmuir adsorption isotherm theory states that the adsorbent surface has a limited number of identical sites, and the adsorption of a solute from a liquid solution takes place as a monolayer adsorption. Several assumptions are considered in the Langmuir model, which include: (i) adsorption of pollutants in certain homogeneous places inside the adsorbent; (ii) adsorption of a dye molecule in one place on the surface of the adsorbent (iii); limitation of the capacity of the adsorbent to adsorption (at equilibrium) (iv); equal energy of all the adsorbent sites. The Langmuir isotherm model calculates the maximum adsorption capacity related to the complete monolayer coverage on the adsorbent surface because the adsorption phenomenon occurs when the energies are uniform on the surface and the transmigration of adsorbate does not take place in the plane of the surface41. The linear form of this model is presented as follows53:

$$\:\frac{1}{{q}_{e}}=\frac{1}{{q}_{max}}+\frac{1}{b{q}_{max}}\frac{1}{{C}_{e}}\:\:\:\:\:\:\:\:\:\:\:\:$$
(9)

where, Ce (mg/L) is DB103 dye equilibrium concentration, qe (mg/g) and qmax (mg/g) are the adsorption capacity at equilibrium conditions and the maximum DB103 dye adsorption, respectively. b is the Langmuir constant and is related to the affinity of the adsorption site. The hypothesis of dye adsorption on a heterogeneous surface is defined by the Freundlich isotherm model, and its linear form is shown below:

$$\:{log}{q}_{e}={log}{k}_{f}+\frac{1}{n}{log}{C}_{e}\:\:\:\:\:\:\:\:\:\:$$
(10)

where, Kf is the adsorption capacity and 1/n is the adsorption intensity. Dubinin–Radushkevich model has also been used to estimate free energy and determine the properties of the adsorbent54. The linear form of this model is presented as follows53:

$$\:Ln{q}_{e}=Ln{q}_{m}+\beta\:{\epsilon\:}^{2}$$
(11)
$$\:E=\frac{1}{{\left(2b\right)}^{1/2}}$$
(12)

where, β (mol2/J2) is the isotherm constant and E (kJ/mol) is the free energy of adsorption, and the rest of the symbols are mentioned in the previous equation55.

According to the results shown in Table 3 and Figure S3, among the three isotherm models that were examined, the value of the correlation coefficient (R2 = 0.994) in the Freundlich isotherm model is higher than two other models. Hence, the adsorption of DB103 dye on the AC follows the Freundlich isotherm model, so it manifested that adsorption was multi-layered on the heterogeneous surface of the adsorbent39. Since the calculated value of n (Table 3) is in the range of 1 and 10, it proves that the adsorption phenomenon has been carried out ideally. Also, the lower value of 1/n (higher n), signifies that there are high energy sites on the surface of the AC and the interaction of the adsorbent is stronger. It should be considered that the closer value of 1/n to zero indicates that the adsorbent surface is more heterogeneous, while the higher value of 1/n indicates that the adsorbent surface is homogeneous and the pollutant is adsorbed as a monolayer56. The results presented in Table 3 show that the value of 1/n is 0.5, indicating heterogeneous adsorption of DB103 dye. Bao et al. found that the best isotherm model of anionic dye adsorption on AC prepared from pulping by products of rice straw was the Freundlich model57. The findings reported by Li et al.58 and Thabede et al.59 manifested that the Freundlich isotherm model better described the adsorption of congo red and methylene blue using activated carbon produced from walnut shell and black cumin seeds, respectively.

Table 3 Isotherm parameters for DB103 dye adsorption onto the AC.

Thermodynamics studies

Thermodynamics describes the behavior of processes, or, in other words, the relationship between temperature and dye adsorption in the system. Gibbs free energy change (ΔG), enthalpy change (ΔH) and entropy change (ΔS) are the main thermodynamic parameters that are given in the following equations60,61:

$$\:\varDelta\:G={RTlnK}_{L}$$
(13)
$$\:ln{K}_{L}=\frac{\varDelta\:S}{R}+\frac{\varDelta\:H}{RT}\:\:\:\:\:\:\:\:\:\:\:\:$$
(14)
$$\:\varDelta\:S=\varDelta\:H-T\varDelta\:S$$
(15)

where, T (K) is temperature, and KL(L/g) and R (8.314 J/mol K) are equilibrium and universal gas constants, respectively.

The effect of temperature on the DB103 dye removal efficiency on the AC was assessed (Figure S4a). The values ​​of thermodynamic parameters were calculated from the plot of ln KL versus 1/T (Figure S4b) and the results are presented in Table 4. According to the information given in the Table 4, the negative value of ΔG indicates that the adsorption process is spontaneous. The values of ΔH and ΔS, in the temperature range of 298–328 K were 24.590 kJ/mol and 83.431 J/mol.k. So, the positive value of ΔH manifested that the adsorption mechanism with increasing temperature works better and the adsorption mechanism is endothermic. The positive value of ΔS indicates the phenomenon that the disorder of the solid/liquid interface is increased throughout the DB103 dye adsorption process62.

Table 4 Thermodynamic parameters for dye adsorption on the adsorbent.

Mechanism of DB103 dye adsorption

In this study, two physical and chemical interactions have been suggested for the mechanism of DB103 dye adsorption from the aqueous solution. The porosity of the AC surface had a significant effect on the adsorption of the DB103 dye on the adsorbent and improved the physical adsorption. Also, the pH parameter has an important impact on the surface binding site of the adsorbent and the ionization of dye molecules. In other words, decreasing pH causes an increase in the hydrogen ions (H+) on the surface of the adsorbent, which leads to the protonation of functional groups on the adsorbent surface. Threfore, an electrostatic interaction between AC prepared from sesame shell and anionic DB103 dye occurs.

Effect of competing ions on DB103 removal

In this work, the effect of competing ions on the dye removal efficiency was examined by employing four salts, including Na2SO4, NaCl, Na2HPO4 and CaCl2, in the concentrations of 50, 100, 250, 500 and 1000 mg/L under optimal conditions. The data displayed in Fig. 4 indicates that the adsorption efficiency has increased by increasing the dose of salt in the solution. The reason for this phenomenon can be attributed to the increase in the dimerization of dyes by increasing the amount of salt in the solution. All the selected salts in the dye solution increase the number of intermolecular forces between dye molecules. Hence, it leads to an improvement in the dye adsorption process on the AC surface63.

Fig. 4
figure 4

Influence of salts concentration on DB103 dye adsorption on AC prepared from sesame shell (DB103 concentration: 12 mg/L, pH: 3, contact time: 19 min, adsorbent dose: 4.8 g/L).

Reusability

The study of the reuse of the adsorbent is important in terms of the potential for successive use of the adsorbent and its cost-effectiveness for use on a real scale47. The regeneration of the adsorbent includes the desorption of the dye adsorbed on the adsorbent and then washing after each cycle. For this purpose, a 0.1 M NaOH solution and distilled water were used64. Then, the rinsed AC was subjected to DB103 dye removal again. According to the results shown in Fig. 5, the adsorption efficiency decreased from 84.85 to 42.58% after four cycles. It was found that the AC prepared from sesame shell has good reusability to adsorb DB103 dye even after four consecutive cycles.

Fig. 5
figure 5

Reuse of AC prepared from sesame shell (DB103 concentration: 12 mg/L, pH: 3, contact time: 19 min, adsorbent dose: 4.8 g/L).

Comparison of ACs based on different sources for dye removal

Three dyes, including DR80, DB21 and DB199 dyes, have also been adsorbed by AC prepared from sesame shell (Table 5). The removal percentages of DR80, DB21 and DB199 dyes were 93.08, 93.37 and 98.39%, respectively. The results showed that the synthesized adsorbent had a high efficiency in removing different direct dyes. Furthermore, Table 5 shows the comparison of direct dye adsorption efficiency by different AC adsorbents. AC have been produced from various waste agriculture sources, like the shells of Macor fruit and the comparison of efficiency of them with AC produced from sesame shell clarified that the adsorbent in the present study had high efficiency, could provide a suitable adsorption surface and be applied as an efficient adsorbent in the removal of different dyes.

Table 5 Comparison of the dye removal efficiency of AC prepared from sesame shell to other adsorbents.

Conclusion

This study aimed to produce AC from sesame shells, which were waste from a sesame processing company. The optimal values of operational variables were achieved according to the Box-Behnken model, which were the adsorbent dose of 4.8 g/L, contact time of 19 min, pH of 3 and initial dye concentration of 12 mg/L. In this condition, the adsorption of DB103 was 84.5% and was close to the predicted value by the model. The analysis of the kinetic model illustrated that control of the adsorption process is provided by chemical interactions in the pseudo-second-order model. The adsorption phenomenon was endothermic and spontaneous. The Freundlich isotherm model was the best fit for the adsorption process. Reusability of the adsorbent was investigated in four cycles, which showed that AC is cost-effective to apply on a large scale. Besides, the efficiency of AC prepared from sesame shell was evaluated to remove other direct dyes such as DR80, DB21 and DB199 and confirmed high removal percentages of different direct dyes. Overall, AC prepared from sesame shell, due to its environmental compatibility, having potential for high percentage removal of direct dyes, availability and reusibility is a suitable suggestion for the treatment of textile wastewater.