automatically control water pump motor