The output value of the sensor will depend on not just the water level but additionally the water's conductivity. The pure water isn't conductive. The water contains minerals and impurities is conductive. The object for being detected reflects the audio waves and the distance details is determined by using time-of-flight https://controltechme.com/ultrasonic-level-sensor/