Level sensors are designed to monitor the level of liquids in various tanks. Use level gauges to turn off the dispenser pump if the container is empty.