Mercury, a particularly toxic heavy metal from industrial processes, poses significant risks to both people and the environment when it accumulates to dangerous levels, damaging the liver, kidneys, and nervous system. Therefore, fluorescent organic carbon dots (CDs) were developed for detecting Hg