Extensive research has demonstrated that the pH value of effluent is a crucial factor that significantly affects the performance of adsorbents and is key to the overall adsorption process. Therefore, the behavior of the aerogel under different environmental conditions was evaluated by varying the pH from 2 to 9. Considering the exceptional stability in water, high specific surface area as well high adsorption capacity, the rGO-PDA/50Co-ZIF-8 aerogel was chosen in this study. The adsorption capacity (mg·g
–1) and removal efficiency (%) of the aerogel were examined at different pH conditions with the initial concentration of the lead solution of 200 mg·L
–1. As illustrated in Fig.6(b), the adsorption of lead ions (Pb
2+) enhanced as the pH level rose from 2 to 6, followed by a decrease at pH 7 and 9. More specifically, the aerogel exhibited an adsorption capacity of 122 ± 13.13, 899 ± 22.17, 1217 ± 2.19, 1062 ± 17.27, and 682 ± 15.76 mg·g
–1 at pH = 2, 4, 6, 7, and 9, respectively. Likewise, a similar trend was observed for removal efficiency as the aerogel showed a removal efficiency of 10% ± 1.06%, 73% ± 5.55%, 99% ± 0.1%, 87% ± 1.41%, and 56% ± 2.15% at pH 2, 4, 6, 7, and 9, respectively. The effect of pH can be explained by the speciation of adsorbates and the surface charge density of the adsorbent across different pH levels. Heavy metals, particularly lead ions (Pb
2+), could stably stay in the solution as a positively charged ion in the studied pH range [
37]. Fig.6(c) displayed the surface charge of rGO-PDA/50Co-ZIF-8 aerogel from zeta potential analysis. Notably, the increase of pH from 2 to 11 showed a reduction in the material zeta potential. This can be attributed to the deprotonation of functional groups present in the rGO and PDA at higher pH [
35]. The aerogel exhibited an isoelectric point of 4.5, which indicates that the aerogel has a positive surface charge at pHs below 4.5 and a negative surface charge at pHs above 4.5. In particular, when the pH was below 4.5, the rGO-PDA/ZIF-8 aerogel’s surface became positively charged because of the protonation of PDA’s phenolic groups and the destabilization of Co-ZIF-8 crystals under acidic conditions [
38]. On the other hand, in highly acidic conditions, a high concentration of H
+ could compete with Pb(II) on the surface adsorption sites, leading to a lower adsorption capacity and removal efficiency [
39]. On the other hand, when the pH exceeded 4.0, the surface charge shifted to a more negative state as a result of the deprotonation of the phenolic groups in PDA. Concurrently, the Co-doped ZIF-8 crystals exhibited a negative charge, offering additional sites for adsorption [
40]. Thus, the electrostatic attractions between the aerogel’s sites and Pb(II) further enhanced the adsorption capacity and removal efficiency. Furthermore, the concentration of H
+ decreased, and the competition between Pb(II) and H
+ weakened leading to the enhancement of adsorption capacity [
41]. However, at higher pH values (pH > 6.0), the aerogel exhibited a decrease in adsorption capacity and removal efficiency due to the formation of Pb(OH)
2 in the solution that might compete with the adsorbent, leading to a deterioration of the adsorption performance [
16].