1 Introduction

Water pollution has been a significant problem for many years [1]. However, it was inevitable due to the industrial revolution, globalization, and the application of science, which caused irreversible environmental damage [2]. As a result of the increased misuse of water in a plethora of agricultural, household, and industrial sectors, drinking water quality and availability are deteriorating and causing concern globally [3]. Industrial runoff contains herbicides, insecticides, fungicides, heavy metals, dyes, drugs, and other organic and inorganic pollutants that are innately eco-pernicious and imperishable [4,5,6,7]. Among all these pollutants, dyes are a colorful contaminant widely employed in various industries like paint, automobile, paper, chemical, polymer, cosmetic, textile, pharmaceutical, leather, and printing [8,9,10,11]. The textile industry consumes considerable water during manufacturing, releasing large amounts of dye-loaded effluents into freshwater sources [12]. It is well-known that these dyes also show a lasting adverse impact on marine species.

Furthermore, dyes also disrupt photosynthetic processes by preventing sunlight from reaching aquatic ecosystems, which, in turn, significantly impacts the aquatic ecosystem [13, 14]. Among several toxic dyes, methylene blue (M.B.) is a typical cationic dye that gives a blue hue when dissolved in water. It is widely used in dye industries for coloring cotton, silk, wool, etc., and in pharmaceutical and chemical industries. Although M.B. has many practical uses, long-time exposure to it can irritate the skin with redness, fever, high blood pressure, itching, mouth irritation, dizziness, throat, stomach, gastrointestinal and esophagus pain, diarrhea, headache, nausea, and vomiting. Therefore, M.B. containing effluent should be treated adequately before discharge into water bodies.

The decontamination of dyes from aqueous medium has been frequently accomplished using various methods like membrane filtration, ion exchange, photocatalytic process, biological treatment (aerobic and anaerobic), electrodialysis, coagulation and flocculation, Fenton oxidation, reverse osmosis, ozonation, adsorption, etc. Each method has specific merits and demerits and has been discussed in several review papers [15,16,17,18,19,20]. Most methods have shown their applicability in treating dye-contaminated water at laboratory scales. Still, they suffer from the drawbacks of their large-scale relevance due to high cost, the requirement of high energy consumption, large operational time, and the possible generation of large quantities of secondary sludge [21]. Thus, the selection of an appropriate method has always been a challenging task. Among the several ways, the adsorption technique has received considerable attention as it is greener, cleaner, cheaper, simpler, and flexible in operation, non-sensitive to toxic pollutants [22, 23].

Furthermore, this technique has minimum sludge generation and disposal problems and has provision for adsorbent recovery. However, choosing an appropriate adsorbent depends upon the presence of reactive functional groups on its surface and surface area. The silica gel and activated carbon have been acknowledged as conventional adsorbents, which show outstanding adsorption capacity towards various pollutants. But, their applications are not always feasible because of the significant expense and issue of adsorbent regeneration. Accordingly, research has focused on searching for more cost-effective and efficient adsorbents. Biomass wastes, which include agricultural residues, natural materials, and food/domestic wastes, are renewable resources that might be used to make high-value carbon products proving to be viable alternatives for adsorption applications. Over the past few years, several types of adsorbents made from vegetal and animal residues like stems, peels, sawdust, nut shells, barks, egg shells, bird plumes, leaves, husks, and additional analogous residues have been used as value-added products to eliminate or reduce the hazardous pollutants from wastewater [23,24,25,26,27,28,29,30,31,32]. Biomass wastes have negligible or no commercial value and frequently have disposal issues. Thus, employing these wastes as adsorbents may add their economic value and decrease disposal costs. But, biomass-based adsorbent materials have restricted applications due to their specificity and poor adsorption capacity. The limitations of biomass-based adsorbents can be overcome by chemically modifying them. Various reagents, like alkalis, acids, surfactants, polymers, etc., were used as modifying agents to enhance adsorption efficiency. Furthermore, the choice of modifying agents is based on several factors, including the type of the substance, contamination, affordability, and adsorption efficacy under the given experimental parameters.

Herein, sawdust (SD) of the Azadirachta indica (Neem) tree has been chemically modified by NaOH to synthesize a novel adsorbent to eliminate hazardous dye from an aqueous solution. Since sawdust is a waste found in abundance, it could be used as a prospective and inexpensive adsorbent for the low-cost treatment of dye-laden water. This study explores the possible exploitation of untreated Azadirachta indica sawdust (A.I.S.D.) and NaOH-modified Azadirachta indica sawdust (N.A.I.S.D.) adsorbents that may be effectively used for dye sequestration from artificially contaminated water.

Given the above facts, the present research has been planned with a prima facie to utilize A.I.S.D. and N.A.I.S.D. adsorbents to purify wastewater effectively. A technique for evaluating complete operational parameters was developed, and A.I.S.D. and NaOH-treated A.I.S.D. (N.A.I.S.D.) were employed for the sequestration of M.B. dye. A maximum outcome has been achieved by optimizing laboratory parameters, viz., solution pH, amount of adsorbent, contact time, temperature, and initial dye concentrations. Furthermore, S.E.M./E.D.X.S., T.E.M./S.A.E.D., B.E.T., T.G.A.–D.T.G., X.R.D., pHpzc, and F.T.I.R. characterizations of A.I.S.D. and N.A.I.S.D., and thermodynamic, isothermal, and kinetic analyses of experimental data were also carried out.

2 Experimental procedure

2.1 Materials

Analytical reagent grade reagents and chemicals (HCl, KNO3, CH3OH, H2SO4, NaOH, C6H6, CH3COOH), and microscopic grade M.B., obtained from CDH, India, were used in this study. In all the experimental studies, demineralized water purified by double distillation (DM-DW) was used. A stock solution of dye (1000 mg L−1) was prepared by dissolving a befitting quantity in the DM-DW.

2.2 Adsorbents preparation

Azadirachta indica sawdust waste, procured from a nearby sawmill, was washed vigorously with DM-DW to remove superficially tenacious dust and solvable contaminations. After that, it was dried in a 90 °C oven for 12 h until completely dry. Afterward, the dried mass was powdered using a mixer grinder and passed through a sieve with 80 BSS mesh size. The resulting material was then repeatedly washed with DM-DW. After filtering, the powder was dried in an oven for 12 h at 90 °C. The chemical treatment of the A.I.S.D. was executed by using 0.1 M sodium hydroxide with a 1:5 proportion (A.I.S.D.: alkali, w/v) with 8 h of continuous mixing at ambient temperature. Afterward, the mass was screened using Whatman filter paper by suction filtration and washed many times with DM-DW to discard unreacted sodium hydroxide. Then, N.A.I.S.D. was kept for 8 h at 90 °C in an oven. The adsorbents (A.I.S.D. and N.A.I.S.D.) so prepared were pulverized with a mortar and pestle into powder form and stored in airtight vials under desiccated conditions for future usage.

2.3 Adsorbents characterization

2.3.1 Proximate analysis

A.I.S.D. and N.A.I.S.D. were subjected to proximate analysis to obtain quantitative values about moisture, volatile matter, ash, and fixed carbon employing the reported techniques [33,34,35].

Moisture

The moisture percentage in A.I.S.D. and N.A.I.S.D. was calculated by taking 1.0 g of each adsorbent and kept in a crucible made of porcelain at 100 °C for 60 min. After that, the crucible was removed from the oven and kept in a dry environment for cooling. The sample weight (wt) loss was measured by weighing the sample, and the % moisture content (%M) was calculated by using the following equation:

$$\%\;\mathrm M=\frac{\mathrm{sample}\;\mathrm{wt}\;\mathrm{loss}}{\mathrm{sample}\;\mathrm{initial}\;\mathrm{wt}}\times100$$
(1)

Ash

The percentage of ash in A.I.S.D. and N.A.I.S.D. was determined by taking 1.0 g of each adsorbent, placing it in a ceramic crucible, and kept inside a muffle furnace at 680 °C for 6 h. Afterward, the ash was carefully taken out with the help of heat-resistant furnace gloves and kept in a dry environment for cooling. The weight of the sample was recorded, and the percentage of ash (%A) was calculated by employing the following expression:

$$\%\;\mathrm A=\frac{\mathrm{ash}\;\mathrm{wt}}{\mathrm{adsorbent}\;\mathrm{wt}}\times100$$
(2)

Volatile matter

The percentage of volatile content in A.I.S.D. and N.A.I.S.D. was measured by taking 1.0 g of each adsorbent. A muffle furnace was used to heat it for 12 min at about 610 °C in a crucible. After carefully taking it out and waiting till the sample returned to its normal temperature, the weight of the adsorbent was recorded, and the percentage of volatile content (%V) was calculated using the following expression:

$$\%\;\mathrm V=\frac{\mathrm{Initial}\;\mathrm{wt}-\mathrm{final}\;\mathrm{wt}}{\mathrm{Initial}\;\mathrm{wt}}\times100$$
(3)

Fixed carbon

For the quantitative calculation of percentage fixed carbon (%V), the following expression was used:

$$\mathrm{\% FC}=100-\mathrm{\% }\left(\mathrm{A}+\mathrm{M}+\mathrm{V}\right)$$
(4)

2.3.2 Analysis of components

The analysis of components in A.I.S.D. and N.A.I.S.D. was performed by already reported techniques [33, 36]:

Extractives

In the extractive analysis of A.I.S.D. and N.A.I.S.D., each sample having the initial weight of Mi was treated separately using ethanol and benzene combination (1:2) at 30 °C for 4 h. After that, the samples were filtered, and the residue was dried at 90 °C until fully dry. The weight of the residue (Mr) was measured after keeping it in a dry environment for 5 h. The percentage of extractives (%E) was estimated using the expression:

$$\mathrm{\% E}= \frac{{\mathrm{M}}_{\mathrm{i}}-{\mathrm{M}}_{\mathrm{r}}}{{\mathrm{M}}_{\mathrm{i}}}\times 100$$
(5)

Hemicellulose

The residue of extractive analysis (Ma) was refluxed for 6 h with a 250 mL solution of 0.5 M sodium hydroxide. After filtering, the weight of the residue (Mb, g) was used to determine the hemicellulose (% H) by using the expression:

$$\mathrm{\% H}= \frac{{\mathrm{M}}_{\mathrm{a}}-{\mathrm{M}}_{\mathrm{b}}}{{\mathrm{M}}_{\mathrm{a}}}\times 100$$
(6)

Lignin

Mc g of the residue of extractive analysis was treated with 25 ml H2SO4 for 20 h at 14 °C, and then the mixture was diluted with DM-DW to 250 mL and refluxed for 1 h. After filtering, the residual mass was washed with DM-DW several times to remove the SO42−. Finally, the weight of this oven-dried residue (Md) obtained in this way was used to evaluate the amount of lignin which was evaluated from the oven-dried mass of the residue using the following equation:

$$\mathrm{\% L}= \frac{{\mathrm{M}}_{\mathrm{d}}(1-\mathrm{E})}{{\mathrm{M}}_{\mathrm{c}}}\times 100$$
(7)

Cellulose

The percentages of cellulose were estimated using the expression:

$$\mathrm{\% C}=100-\left(\mathrm{A}+\mathrm{E}+\mathrm{L}+\mathrm{H}\right)\mathrm{\%}$$
(8)

2.3.3 Point of zero charge

The point of zero charge (pHpzc) of N.A.I.S.D. was determined using the solid addition technique. This was carried out by taking 25 mL of 0.1 M KNO3 in various 100 mL beakers. By the drop-by-drop addition of 0.1 M HCl/NaOH in solutions, the initial pH (pHi) was adjusted from 2 to 13. Following that, 0.05 g of adsorbent was added to each beaker, which was then properly enclosed and left in the dark for 48 h. The plot of ΔpH (pHf-pHi) vs. pHi was used to evaluate pHpzc of N.A.I.S.D.

2.3.4 Instrumental analyses

S.E.M. (scanning electron microscopy) and E.D.X.S. (energy dispersive X-ray) analyses (JEOL, JSM-6510LV, Japan) were utilized to investigate morphologic characteristics of the adsorbents. The T.E.M. was used to investigate adsorbent particle shape and size (JEOL, 2100). The pore volume and surface area were determined by employing B.E.T. analyzer (Autosorb IQ2, Quantachrome Instruments, USA). X.R.D. was used to investigate the crystallinity or amorphous nature of the adsorbents (SmartLab, Rigaku, Japan). The experiments were conducted in the 5–80° (2θ) range at a 20°/min scan rate with a 0.02° step size. Fourier transform infrared (F.T.I.R.) spectrometer (1800 IR spectrophotometer, Perkin-Elmer) was used to analyze the functional groups of the adsorbent in the spectrum region of 4000–400 cm−1. In a nitrogen environment, T.G.A.–D.T.G. was performed in a thermogravimetric analyzer (Perkin Elmer thermal analysis instruments) in a temperature range of 24 to 750 °C with a controlled heating rate of 20 °C min−1. The weight loss of the adsorbents as a function of temperature was measured in this study owing to the degradation of their components.

2.3.5 Batch adsorption studies

Batch adsorption was utilized to optimize the efficacy of the adsorbent in removing M.B. from synthetically contaminated water. Batch experiments were conducted in 100 mL beakers containing 25 mL dye solution with 0.01 g of adsorbent (A.I.S.D. or N.A.I.S.D.) at the solution pH 7. After attaining equilibrium or adsorption at any desired time t, the residual concentration of M.B. was measured by a UV–vis spectrophotometer at a λmax of 665 nm. The equilibrium adsorption capacity (qe) and removal efficiency (%R) were obtained by using the following equations:

$${\mathrm{q}}_{\mathrm{e}}\mathrm{=}\left({\mathrm{C}}_{\mathrm{o}}-{\mathrm{C}}_{\mathrm{e}}\right) \, \times \frac{\mathrm{V}}{{\mathrm{M}}}$$
(9)
$$\mathrm{\%R=}\frac{\left({\mathrm{C}}_{0}-{\mathrm{C}}_{\mathrm{t}}\right)}{{\mathrm{C}}_{0}}\times {100}$$
(10)

In the above equations, Co, Ce, and Ct are the starting, equilibrium, and any-time concentrations (mg L−1) of M.B. in solution, V is the volume (L) of M.B. solution, and M (g) is the weight of A.I.S.D. or N.A.I.S.D., respectively. A similar equation obtained by replacing the term Ce with Ct in Eq. (9) was used to compute the adsorption capacity (qt) at any time t.

2.3.6 Regeneration and desorption experiments

It is essential to regenerate the used adsorbent several times before its disposal to make the overall treatment process as cost-effective as possible. A variety of desorbing agents, such as HCl, NaOH, CH3COOH, NaCl, and water (DM-DW), were used to explore this possibility. M.B.-loaded A.I.S.D. and N.A.I.S.D. were extensively cleaned with DM-DW to remove the unadsorbed dye. The M.B.-loaded A.I.S.D. and N.A.I.S.D. were then agitated separately with 25 mL of each desorbing agent for 4 h and then filtered. Thereafter, the supernatant was analyzed, and percent desorption (%D) was computed by using the following relation:

$$\mathrm{\% Desorption}= \frac{{\mathrm{m}}_{\mathrm{d}}}{{\mathrm{m}}_{\mathrm{a}}} \times 100$$
(11)

Here, md and ma in mg L−1 are the desorbed and adsorbed M.B. concentrations, respectively.

3 Results and discussion

3.1 Proximate and component analysis of A.I.S.D. and N.A.I.S.D.

The outcomes of proximate and constituent analyses of the N.A.I.S.D. and A.I.S.D. shown in Table 1 clearly show the compositional alteration of A.I.S.D by NaOH modification. N.A.I.S.D. has enhanced fixed carbon and cellulose content while decreasing hemicelluloses, moisture, lignin, volatile matter, extractive, and ash content. In the presence of heat, the decomposition of hemicellulose and cellulose occurs in 150 to 350 °C and 250 to 400 °C temperature ranges, respectively, whereas lignin decomposes gradually in the range of 250 to 600 °C [37]. Thus, in light of compositional change, one may conclude that N.A.I.S.D. has more temperature tolerance than A.I.S.D.

Table 1 Proximate and constituent analyses of A.I.S.D. and N.A.I.S.D.

3.2 S.E.M./E.D.X.S. analyses

Figure 1a and c show the S.E.M. micrographs (× 5000) of A.I.S.D. and N.A.I.S.D. Upon M.B. adsorption, the variations on the exterior of these adsorbent materials are seen respectively in Fig. 1b and d. The porosity and uneven surface of A.I.S.D. are noticeable in S.E.M. micrographs. The adsorbent, N.A.I.S.D., exhibited more empty sites due to the NaOH modification as alteration provided the formation of a large number of micropores. During the modification process, some contaminants were also possibly eliminated. Dye molecules were trapped and adsorbed more easily on the surface of N.A.I.S.D. due to newly created pores. Figure 1b and d suggest that the molecules were filled in pores and micropores of N.A.I.S.D. surface. The E.D.X.S. spectra of loaded M.B. onto A.I.S.D. and N.A.I.S.D. are shown respectively in Fig. 1e and f which indicate the presence of Cl. In addition to C, N, and O, the presence of Cl suggest the successful adsorption of M.B. (C16H18N3SCl).

Fig. 1
figure 1

S.E.M. micrographs of a A.I.S.D., b A.I.S.D./M.B., c N.A.I.S.D., and d N.A.I.S.D./M.B; E.D.X.S. results of e A.I.S.D./M.B. and f N.A.I.S.D./M.B

3.3 T.E.M. analysis

T.E.M. analysis was used to investigate the structural aspects of N.A.I.S.D. The T.E.M. image shown in Fig. 2a shows that the particles of N.A.I.S.D. are in the nano range (6–16 nm), which are much smaller than that found for A.I.S.D. (16–42) nm [38]. The presence of nanometer-ranged particles indicated a higher exposed surface area for effective sequestration of M.B. dye. In earlier work, a diffused pattern in the selected area electron diffraction (S.A.E.D.) of A.I.S.D. was observed, which pointed out the amorphous nature of A.I.S.D. [38]. While in the case of N.A.I.S.D., the appearance of bright diffraction rings in the S.A.E.D. pattern (Fig. 2b) indicates that N.A.I.S.D. has a somewhat greater degree of crystallinity than A.I.S.D. It was due to an increase in cellulose content.

Fig. 2
figure 2

a T.E.M. image of N.A.I.S.D. b S.A.E.D. pattern of N.A.I.S.D. c B.E.T. nitrogen adsorption–desorption isotherm at 77 K for N.A.I.S.D. (inset upper left, BJH pore size distribution adsorption plot of N.A.I.S.D.; inset lower right, multi-point B.E.T. plot of N.A.I.S.D.). d X.R.D. spectra of N.A.I.S.D. (inset, T.G.A.–D.T.G. curve of N.A.I.S.D.)

3.4 B.E.T. analysis

A good surface area of 3.149 m2 g−1 was obtained for N.A.I.S.D. This value is higher than the value of 2.507 m2g−1 as observed for the unmodified adsorbent based on the same raw material, i.e., A.I.S.D. [38]. The summary of surface area and pore analysis of N.A.I.S.D. are summarized in Table 2. The B.E.T. nitrogen adsorption–desorption isotherms at 77 K, along with the BJH pore size distribution adsorption plot, are depicted in Fig. 2c. The improved surface characteristics of N.A.I.S.D. over A.I.S.D. have also been reflected in the proximate and constituent analyses of both adsorbents as the former contains a higher content of cellulose and fixed carbon, and lower in the volatile matter, hemicellulose, and lignin (Table 1).

Table 2 Summary of B.E.T. surface area and pore analyses N.A.I.S.D.

3.5 X.R.D. analysis

Figure 2d shows X.R.D. result from 5 to 80° range of 2θ, indicating that the current adsorbent is a low crystalline material. The amorphous nature of the adsorbent is due to the presence of hemicelluloses and lignin [33]. The three peaks seen in the 2θ range at 6.48°, 22.08°, and 34.12° are because of the presence of cellulose in the biomass. The prominent peaks at around 16° and 22° were also reported on different sawdust-based adsorbents, viz., rubber wood [39], pinewood [40, 41], Tectona grandis [42], Pinus elliotii [43], Cunninghamia lanceolata [44], massaranduba [45], etc.

3.6 T.G.A.–D.T.G. analysis

The T.G.A. thermogram of N.A.I.S.D. shown in Fig. 2(d-inset) is represented by many stages, namely the evolution of moisture and the decomposition of hemicellulose, cellulose, and lignin. The moisture evolution occurs in the lowest temperature range, followed by decomposing the most unstable biomass component, hemicellulose. The cellulose decomposes at a higher temperature, while lignin decomposition starts even from very low temperatures and continues up to 900 °C. However, there is no general agreement in the temperature ranges for the decomposition of components of different biomasses. For example, for different biomasses, the temperature ranges for the moisture evolution and decomposition of hemicellulose, cellulose, and lignin were reported in vast ranges, typically 50–200, 50–400, 240–588, and 160–900 °C, respectively [45,46,47,48,49,50,51]. The D.T.G. thermogram (Fig. 2d-inset) clearly shows the maxima occurring at 353.18 °C.

3.7 F.T.I.R. analysis

F.T.I.R. spectra were used to understand better the availability of distinct functional groups on the adsorbent surface. The strong peak at 3443 cm−1 (Fig. 3a) observed in N.A.I.S.D. represents the –OH stretching of the phenolic group of cellulose and lignin, and the peak at 2960 cm−1 indicates the presence of –CH2 stretching of the aliphatic compound [52]. The peak at 2147 cm−1 indicates the presence of N–H stretching. The arrival of peaks at 1735 cm−1 and 1642 cm−1 specifies the presence of C = O stretching of the aldehyde group and C = C stretching of the phenolic group, respectively [41]. Peaks at 1477 cm−1, 1402 cm−1, 1282 cm−1, and 1131 cm−1 in the N.A.I.S.D. spectra can be due to − CH2 bending, − OH bending, and − C − O stretching of the phenolic group and six-member cyclic ether group, respectively [41]. The changes in position and intensity of these peaks after the adsorption of M.B. signify the involvement of the stated groups in the binding of M.B. with N.A.I.S.D. during the adsorption process.

Fig. 3
figure 3

a F.T.I.R. spectra of N.A.I.S.D. and N.A.I.S.D./M.B. b Effect of contact time on adsorption capacity at different initial dye concentration (Co) and contact time. c Effect of pH on the adsorption capacity (inset—pHpzc of N.A.I.S.D. adsorbent). d Effect of adsorbent dose on removal efficiency and adsorbent capacity of N.A.I.S.D. (inset—A.I.S.D.) at 303 K

3.8 Study of operational parameters

3.8.1 Initial dye concentration (Co) and contact time

The effect of contact time on the adsorption capacity of A.I.S.D. and N.A.I.S.D. towards M.B. at different initial concentrations (100, 150, and 200 mg L−1) of M.B. is shown in Fig. 3b at a typical temperature of 303 K. The plot demonstrates that the initial 20 min shows a significant rise in the adsorption capacity followed by a slower increase of the dye removal until it achieves equilibrium in around 120 min and 75 min for A.I.S.D. and N.A.I.S.D., respectively. The rapid increase in adsorption capacity during the initial stage by both adsorbents is because of the abundance of a significant proportion of unoccupied sites on the adsorbent surface.

3.8.2 Effect of pH

The pH controls the degree of ionization, micropore surface charges, and dye fluid nature and is among the important guiding factor affecting adsorption performance of the adsorbent. The impact of pH on M.B. sequestration by A.I.S.D. and N.A.I.S.D. was investigated in the pH range of 2–13 at Co of 100 mg L−1. As shown in Fig. 3c, with a change in pH from 2 to 7, the qe rose from 80.74 to 180.51 mg g−1 for A.I.S.D. and from 147.33 to 248.91 mg g−1 for N.A.I.S.D. Following that, a pH increase of 7 to 13 shows a slight improvement in adsorption capacity. The modified adsorbent (N.A.I.S.D.) has a greater adsorption capacity than the unmodified one (A.I.S.D.). This is owing to the fact that N.A.I.S.D. has larger vacant sites than A.I.S.D., resulting in enhanced M.B. adsorption for the N.A.I.S.D. At pH values higher than 7, cationic M.B. adsorption is preferred. It is because A.I.S.D./N.A.I.S.D. shows the presence of a negative charge on the surface and deprotonation of A.I.S.D./N.A.I.S.D.’s functional groups, resulting in the generation of hydrogen ions. As a result, the deprotonated groups serve as receptor sites for the cationic M.B., resulting in improved adsorption. The graph mirrored this, which shows that higher pH favors adsorption. The positively charged (or protonated) surface and the dye molecule show electrostatic repulsion, thus preventing effective adsorption at lower pH.

The point of zero charge (pHpzc) of an adsorbent is a remarkable parameter to understand the substantial influence of pH on adsorption. With the help of the solid-addition method, the pHpzc of N.A.I.S.D. was established to be 6.8 (Fig. 3c-inset). At pH > pHpzc, i.e., deprotonation results in a negative surface charge, but when pH ˂ pHpzc, due to protonation resulting in positive surface charge, and when pH = pHpzc, the adsorbent surface has zero net charge. As a result, any basic dye preferentially adsorbed when the pH of the A.I.S.D. and N.A.I.S.D. was larger than pHpzc. In light of these observations, a pH value of 7.0 was chosen with care.

3.8.3 Adsorbent dose

The adsorbent dosage is a significant parameter since it controls the adsorption performance in the effective elimination of contaminants. The doses ranging from 0.4 to 4.0 g L−1 for both adsorbents were used in the experiments. At equilibria, the % R of A.I.S.D. and N.A.I.S.D. improves from 72.20 to 88.84% and 99.56 to 99.99%, respectively, when the adsorbent dosage is increased from 0.4 to 4.0 g L−1 (Fig. 3d). The continuous enhancement % R with adsorbent dose is due to increase in surface area and the availability of more binding sites for adsorption. However, as indicated in Fig. 3d, an opposing trend in adsorption capacity was observed. At the lowest adsorbent dose (i.e., 0.4 g L−1), the maximum adsorption capacity of 180.51 mg g−1 and 248.91 mg g−1 was observed for M.B. by both adsorbents, viz., A.I.S.D. and N.A.I.S.D., respectively. Therefore, in perspective, it is worth commenting that the higher adsorbent dose offers the interaction of adsorbent particles like amalgamation and aggregation, which cause the reduction in effective surface area per unit weight of the adsorbents. Figure 3d further shows that the adsorption capacity was significantly greater with N.A.I.S.D. in comparison with that of A.I.S.D.

3.9 Adsorption kinetics

The time-dependent experiments were conducted to evaluate the kinetics behind the adsorption of M.B. on the surface of A.I.S.D. and N.A.I.S.D. The pseudo-first-order (PsFO), pseudo-second-order (PsSO), Elovich (El), intraparticle diffusion (InPD), and liquid film diffusion (LiFD) models were employed to analyze the kinetic data. The linearized expressions of different kinetic models are given in Table 3 [42, 53].

Table 3 Kinetic equations and parameters (units) used

Table 4 lists the kinetic parameters accompanying the adsorption of M.B. by A.I.S.D. and N.A.I.S.D. Based on R2 values (close to unity) for t/qt vs. t plot (Fig. 4a, b), it is clear that the PsSO model has an excellent fit for the adsorption of dye by both adsorbents. Furthermore, the calculated values of qe (qcal) using this approach are in excellent agreement with experimental ones (qexp) for both raw and modified A.I.S.D. In reality, many researchers have already verified the PsSO kinetics for the elimination of M.B. by several adsorbents. The values of PsSO kinetics parameters associated with the adsorption of M.B. by a variety of adsorbents, as reported by other investigators, are summarized in Table 5.

Table 4 Kinetic parameters for the confiscation of M.B. by A.I.S.D. and N.A.I.S.D. (experimental conditions: adsorbent dose = 0.4 g L−1, T = 303 K, pH = 7, and t = 120 min for A.I.S.D. and 75 min for N.A.I.S.D.)
Fig. 4
figure 4

PsSO kinetic plot for the adsorption of M.B. onto the a A.I.S.D. and b N.A.I.S.D. at different initial dye concentrations; Lr isotherm plot for the adsorption of M.B. onto c A.I.S.D. and d N.A.I.S.D. at 303 K; ln Kc vs. 1/T plot the adsorption of M.B. onto e A.I.S.D. and f N.A.I.S.D

Table 5 PsSO kinetic parameters for the adsorption of M.B. onto different adsorbents

The kinetics data were also assessed for the likelihood of M.B. adsorption via InPD onto the A.I.S.D. and N.A.I.S.D. The possibility of InPD being the sole rate-limiting step is indicated by the straight line plot of qt vs. t1/2 passing through the origin [54]. Because qt vs. t1/2 intercepts were non-zero (Table 4), it may be inferred that this model is unsuitable in the present case. Furthermore, ln (1 – F) vs. t had zero intercepts as D values ranging from − 1.947 to − 0.7793 for A.I.S.D. and − 4.2683 to − 2.3735 for N.A.I.S.D. (Table 4) point out the unsuitability of the LiFD model in the present case.

3.10 Adsorption isotherm

The process governing the confiscation of M.B. by A.I.S.D. and N.A.I.S.D. was analyzed by employing different isotherm models. This behavior of the adsorbate–adsorbent system has been defined using a variety of isotherm frameworks. The Langmuir (Lr), Freundlich (Fh), and Temkin (Tn) isotherm models were used to assess the obtained results for the isotherm investigation. The Lr model relies on the idea that every unoccupied space can be singly adsorbed, with little connection between adsorbed molecules. It focuses on single-layer adsorption. According to the Fh isotherm model, adsorption happens in a multilayered with a complex composition of adsorption sites. The Tn model specifies a declining adsorption heat as the surface of the adsorbent is covered by adsorbate molecules [75]. The linear isotherm equations for these models are listed in Table 6 [76].

Table 6 Adsorption isotherm equations and parameters (units) used

Table 7 lists isotherm model parameter values obtained for the adsorption of M.B. by A.I.S.D. and N.A.I.S.D. Based on the values of the correlation coefficient (R2), the Lr model was found to be suitable for the adsorption of M.B. by both adsorbents. The Fh and Tn isotherm frameworks have lower R2 values indicating that they are not as applicable as Lr in the present case. The Lr model plots accompanying the adsorption by both the adsorbents are shown in Fig. 4c and d. The increase in values of qm with the increase in temperature (Table 7) is owing to the endothermic nature of the process, as the adsorption was enhanced by the increase in temperature. A higher qm value was obtained with N.A.I.S.D. than that for A.I.S.D. at each temperature.

Table 7 Isotherm parameters for the adsorption of M.B. onto A.I.S.D. and N.A.I.S.D. at different temperatures (experimental conditions: pH = 7, adsorbent dose = 0.4 g L−1, t = 120 min for A.I.S.D. and 75 min for N.A.I.S.D.)

Furthermore, a non-dimensional factor RL (\({=\frac{1}{1+{K}_{L}C}}_{0}\)), whose magnitude defines whether the operation is irreversible (0), linear (1), unfavorable (> 1), and favorable (0–1), was used to check the feasibility of the process. At 303 K, the values of RL were 0.3537, 0.2673, 0.2148/0.0058, 0.0.0039, and 0.0029 for the adsorption of dye by A.I.S.D./N.A.I.S.D. at the initial dye concentration of 100, 150, and 200 mg L−1, respectively. The fact that these numbers are in the 0–1 range confirms the favorable nature of adsorption.

According to an analysis of relevant literature, the Langmuir isotherm has already been found to be validated in the adsorption of M.B. by a range of adsorbents. Table 8 compares the Lr isotherm variables found in the current study with those previously documented for adsorption M.B. by other researchers.

Table 8 Lr isotherm parameters for the adsorption of M.B. onto different adsorbents

3.11 Adsorption thermodynamics

The effect of temperature on the removal of M.B. by A.I.S.D. and N.A.I.S.D. was studied in the temperature range of 303–333 K. To examine the thermodynamics behind the adsorption, the values of changes in enthalpy (ΔH°), entropy (ΔS°), and Gibb’s free energy (ΔG°) were determined by using following equations:

$$\Delta {G}^{\circ }= -RTIn{K}_{c}$$
(12)
$$In{K}_{c}= \frac{{-\Delta G}^{^\circ }}{RT}=\frac{{-\Delta H}^{^\circ }}{RT}+\frac{{\Delta S}^{^\circ }}{R}$$
(13)

where, Kc is the equilibrium constant. The values of ΔG° along with those of ΔS° and ΔH°, calculated from the slope and intercept of the ln Kc vs. 1/T plot (Fig. 4e, f), are listed in Table 9. The qualitative aspects of thermodynamics of M.B. adsorption via A.I.S.D. and N.A.I.S.D. were essentially the same in both cases. Table 9 clearly indicates that the feasibility of adsorption is much higher with N.A.I.S.D. than that with A.I.S.D. The better adsorption feasibility by N.A.I.S.D. over A.I.S.D. supports the better utility of the former and points out its novelty. Furthermore, the thermodynamic feasibility increases with the increase of temperature with both adsorbents. This is due to an increase in the kinetic energy of the M.B. molecules with the rise in temperature. However, the process is less endothermic with N.A.I.S.D. The qualitative aspects regarding entropy change are the same with both adsorbents. The enhancement of entropy during adsorption is presumably due to the gain of translational entropy by the adsorbate molecules [77]. Literature indicates that a majority of researchers reported entropy escalation during the adsorption of M.B. by different adsorbents. The qualitative changes in thermodynamic parameters accompany the adsorption of M.B. by different adsorbents, as reported by other investigators, are compiled in Table S1. Our results are in qualitative agreement with those reported with the majority of other adsorbents.

Table 9 Thermodynamics parameters (experimental conditions: pH = 7, t = 120 min for A.I.S.D. and 75 min for N.A.I.S.D., adsorbent dose = 0.04 g L−1, and Co = 100 mg L−1)

3.12 Adsorption mechanism

The scheme behind the adsorption pathway must be comprehended to look within it. However, before understanding the mechanism of M.B. dye adsorption, two key factors must be considered: first, the geometry and type of the adsorbate, and second, the adsorbent surface qualities. The major components of A.I.S.D. and N.A.I.S.D., as shown in Table 1, are cellulose, hemicellulose, and lignin, as well as some minor constituents.

Both cellulose and hemicellulose contain oxygen functional groups such as hydroxyl, ether, and carbonyl, while lignin is a complex and highly aromatic substance and acts as a cementing agent that holds both cellulose and hemicelluloses units [53]. The lignin fraction of A.I.S.D. is reduced by chemical treatment with NaOH, which increases the cellulose content in N.A.I.S.D. (Table 1). As a result, the number of binding sites increased. Additionally, S.E.M./E.D.X.S. and B.E.T. tests simply illustrate that modification eliminates the contaminants, improves morphology, and increases surface area. Thus, dye molecules were easily permeated into the pores of N.A.I.S.D.

In A.I.S.D. and N.A.I.S.D., the presence and participation of -OH, -C = O, and –NR2 groups in binding M.B. molecules have been highlighted based on F.T.I.R. investigations. The increased adsorption of N.A.I.S.D. over A.I.S.D. may be due to the formation of hydrogen bonds between -OH groups present on the adsorbent surface and the nitrogen atoms of the dye molecule. A similar mechanism was proposed for the adsorption of crystal violet on a NaOH-treated rice husk surface [78]. Furthermore, the electrostatic force that exists between negatively charged surface functional groups and the positive charge core of M.B. molecules may play active role in adsorption. Furthermore, at pH > pHpzc, the surface becomes strongly negatively charged due to the deprotonation of functional groups and therefore acts as a strong bonding site for cationic dye. These different possible interactions are shown in Fig. 5.

Fig. 5
figure 5

Plausible interactions accompanying the adsorption of M.B. onto N.A.I.S.D.

3.13 Desorption

Desorption studies were performed on five desorbing agents (0.1 M of NaOH, HCl, CH3COOH, NaCl, and DM-DW). The best desorption of M.B. from A.I.S.D. and N.A.I.S.D. was observed with 0.1 M HCl. With 0.1 M HCl, the optimum desorption of M.B. from both A.I.S.D. and N.A.I.S.D. was observed. Since the removal process might be more economical and practical if the adsorbents have the potential to be successfully reused in several consecutive cycles, the present investigation explored this possibility. Given this fact, four adsorption–desorption cycles have been carried out with 0.1 M HCl; the findings are illustrated in Fig. 6. This figure confirms that adsorbents can be effectively used in at least four repeated cycles for the removal of M.B. dye from aqueous solution. The comparatively reduced desorption from N.A.I.S.D. over A.I.S.D. is owing to the strong binding potential of the former with M.B. Similar results were reported with NaOH-modified fishbone charcoal adsorbent used to remove M.B. dye [79]. The potential of the present adsorbents for their repeated application in the dye removal process reduces the problems of disposal of used adsorbents and dye-contaminated water, thereby making the process economical.

Fig. 6
figure 6

Desorption of M.B. from M.B. loaded A.I.S.D. and N.A.I.S.D

4 Conclusion

The current study looks at the improved performance of A.I.S.D. after it was modified with NaOH to remove M.B. dye from an aqueous phase. The adsorption capacity for both the adsorbents (A.I.S.D. and N.A.I.S.D.) has been influenced by batch parameters, and the equilibrium for optimum adsorption was attained in 120 min for A.I.S.D. and 75 min for N.A.I.S.D. The Langmuir isotherm was best fitted to the adsorption data with the maximum monolayer adsorption capacity of 416.67 mg g−1 and 588.23 mg g−1 for A.I.S.D. and N.A.I.S.D., respectively. The kinetics data presented the applicability of the PsSO model accompanying the adsorptive removal of M.B. by both adsorbents, A.I.S.D. and N.A.I.S.D. The thermodynamic studies suggested that the adsorption of M.B. by both adsorbents was spontaneous, endothermic, and accompanied by an increase in entropy. The best desorption of M.B. from M.B.-loaded A.I.S.D. and N.A.I.S.D. was with 0.1 M HCl. The present adsorbents were found to be recyclable for at least four cycles. In view of the efficient and economical removal of M.B. from contaminated water and the reusability of adsorbent in several cycles, the current study claims that N.A.I.S.D. adsorbent is novel, cheap, and economically appropriate for the remediation of dye-polluted water. The AISD-based adsorbents have the potential for further modification with other suitable agents. There is scope for developing AISD-based adsorbents to extend their applicability in wastewater remediation containing a variety of contaminants, like anionic dyes, heavy metal ions, drugs, pesticides, etc. Furthermore, the separation of adsorbent is a serious and challenging issue during the adsorptive treatment of wastewater. Since magnetic separation is fast, time-saving, and cost-effective, magnetic modification and chemical modification might be potential scope for further investigations.