Skip to Content
You are currently on the new version of our website. Access the old version .
SensorsSensors
  • Editor’s Choice
  • Article
  • Open Access

22 May 2025

16 Pages

Color QR Codes for Smartphone-Based Analysis of Free Chlorine in Drinking Water

,
,
,
,
and
1
Department of Electronic and Biomedical Engineering, Universitat de Barcelona, Martí i Franquès 1, 08028 Barcelona, Spain
2
eHealth Center, Faculty of Computer Science, Multimedia and Telecommunications, Universitat Oberta de Catalunya, Rambla del Poblenou, 156, Sant Martí, 08018 Barcelona, Spain
3
Department of Mathematics and Computer Science, Universitat de Barcelona, Gran Via de les Corts Catalanes, 585, 08007 Barcelona, Spain
4
Institute of Semiconductor Technology (IHT), Technische Universität Braunschweig, Hans-Sommer Straße 66, 38106 Braunschweig, Germany

Abstract

Free chlorine (FC) plays a crucial role in ensuring the safety of drinking water by effectively inactivating pathogenic microorganisms. However, traditional methods for measuring FC levels often require specialized equipment and laboratory settings, limiting their accessibility and practicality for on-site or point-of-use monitoring. QR Codes are powerful machine-readable patterns that are used worldwide to encode information (i.e., URLs or IDs), but their computer vision features allow QR Codes to act as carriers of other features for several applications. Often, this capability is used for aesthetics, e.g., embedding a logo in the QR Code. In this work, we propose using our technique to build back-compatible Color QR Codes, which can embed dozens of colorimetric references, to assist in the color correction to readout sensors. Specifically, we target two well-known products in the HORECA (hotel/restaurant/café) sector that qualitatively measure chlorine levels in samples of water. The two targeted methods were a BTB strip and a DPD powder. First, the BTB strip was a pH-based indicator distributed by Sensafe®, which uses the well-known bromothymol blue as a base-reactive indicator; second, the DPD powder was a colorimetric test distributed by Hach®, which employs diethyl-p-phenylenediamine (DPD) to produce a pink coloration in the presence of free chlorine. Custom Color QR Codes were created for both color palettes and exposed to several illumination conditions, captured with three different mobile devices and tested over different water samples. Results indicate that both methods could be correctly digitized in real-world conditions with our technology, rendering a 88.10% accuracy for the BTB strip measurement, and 84.62% for the DPD powder one.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.