Modernized sensor measurement technique for determination of chlorine in bathing water