The output value of the sensor is determined by not simply the water level but in addition the water's conductivity. The pure water isn't conductive. The water includes minerals and impurities is conductive. The thing to become detected reflects the audio waves and the distance information is determined via time-of-flight https://controltechme.com/ultrasonic-level-sensor/