Toxic heavy metal ions, such as lead ions, significantly threaten human health and the environment. This work introduces a novel method for the simple and sensitive detection of lead ions based on biochar-loaded titanium dioxide nanoparticles (BC@TiO2NPs) nanocomposites. Eco-friendly biochar samples were prepared from spent coffee grounds (500 °C, 1 h) that were chemically activated with TiO2 nanoparticles (150 °C, 24 h) to improve their conductivity. Structural characterizations showed that BC@TiO2NPs have a porous structure. The BC@TiO2NPs material was evaluated for lead ion determination by assembling glassy carbon electrodes. Under optimal conditions, the sensor was immersed in a solution containing the analyte (0.1 M NaAc-HAc buffer, pH = 4.5) for the detection of lead ions via differential pulse voltammetry. A linear dynamic range from 1 pM to 10 μMwas achieved, with a detection limit of 0.6268 pM. Additionally, the analyte was determined in tap water samples, and a satisfactory recovery rate was achieved.
Biochar-based adsorbents synthesized from agricultural wastes have emerged as economical and environmentally sustainable materials for water purification. In this study, coffee shell-derived biochars were synthesized via pyrolysis at 500 and 700 °C, with and without water washing, and comprehensively characterized to evaluate their potential for removing Rhodamine B (RhB) from aqueous solution. Structural and surface analyses indicated that a higher pyrolysis temperature enhanced pore development and aromaticity, whereas water washing effectively removed inorganic ash, thereby exposing additional active sites. Among all samples, water-washed biochar pyrolyzed at 700 °C (WCB700) exhibited the highest surface area (273.6 m2/g) and adsorption capacity (193.5 mg/g). The adsorption kinetics conformed to a pseudo-second-order model, indicating chemisorption, and the equilibrium data fit the Langmuir model, suggesting monolayer coverage. Mechanism analysis highlighted the roles of π–π stacking, hydrogen bonding, electrostatic interaction, and pore filling. Additionally, WCB700 retained more than 85% of its original capacity after five regeneration cycles, demonstrating excellent stability and reusability. This study presents an economical approach to valorizing coffee waste as well as provides mechanistic insights into optimizing biochar surface chemistry for enhanced dye removal. These findings support the application of engineered biochar in scalable and sustainable wastewater treatment technologies.