Municipal swimming pools and spas use chlorine as a disinfectant and so use a pool controller to control the amount of chlorine that gets dosed.