Try the web interface of the Water Level Monitor project with your hardware (microcontroller and ultrasonic distance sensor), or create a program implementation with one of the described sensors:
https://martinius96.github.io/hladinomer-studna-scripty/en/
https://martinius96.github.io/hladinomer-studna-scripty/en/