which often use sensors to control water flow and energy consumption