Here is a simple, automatic water-level controller for overhead tanks that switches on/off the pump motor when water in the tank goes below/above the minimum/maximum level. The water level is sensed by two floats to operate the switches for controlling the pump motor.