That's precisely what this Water Level Sensor lets you do! It can measure the water level, watch a sump pit, detect rainfall, and detect leaks. You can find differing kinds of water level sensors for each classification. This portion of the guidebook will go over how they get the job https://controltechme.com/ultrasonic-level-sensor/