Detecting the concentration of residual chlorine in sodium hypochlorite solution (NaClO) or hypochlorous acid (HClO).