Ultrasonic sensors can have issues with condensation. Particularly if in an enclosed tank.
I’d go with float switches or a pressure based level sensor. There’s a topic (long but worthwhile read) about the different options here: ESPHome water level sensor
I use two of these (1m and 2m, 0-5V out) https://www.aliexpress.com/item/1005005928682318.html and they work perfectly.