Concerning environmental safety and mitigating the risk of water pollution, the electroplating industry, historically reliant on the use of elevated concentrations of heavy metals to achieve high-quality products, faces a crucial challenge in monitoring wastewater enriched with these metals, notorious for their adverse effects on ecosystems and human health. Chromium, in both oxidation states Cr (III) and Cr (VI), emerges as a prominently employed metal, yielding noteworthy outcomes throughout the galvanisation process. This research showcases the prototype of an automatic in situ sensor tailored to industry sustainability efforts to facilitate real-time monitoring and efficient water management. This custom sensor, characterized by sensitivity, reliability, and user-friendliness, utilizes UV-Vis colorimetric principle to detect Cr in both oxidation forms ranging from grams per litre (g/L) to parts per million (ppm). This is made possible by the unique vibrant colours induced by chromium ions, enabling the precise measurement of analyte concentrations. Thanks to 3D printing, this sensor system interacts with customized parts, designed and validated through simulation processes, for filtering out particulate that may interfere with the analysis. The outcome represents a synergistic blend of technology and environmental responsibility, aligning industrial processes with the goal of safeguarding water resources and ecosystems.