The first method requires the installation inside the tank of the sensor that controls the water level and blocks the pump at the time of its complete filling. When the water level in the tank again drops below the required level, the sensor will start the pump again.