The variation in pollutant concentrations among different water bodies poses a significant challenge for environmental surveillance. Traditional UV-Vis spectrometers, with fixed optical paths, face limitations in accurately determining Chemical Oxygen Demand (COD) and other water quality parameters. High concentrations surpass the detection limit, while low concentrations yield weak response signals, thereby compromising measurement accuracy. This study tackles these challenges by enhancing a UV-Vis spectrometer with a variable optical path. By...