Water purification and monitoring