Problem with calibration of “Water level sensor” when power is turned on

Yes, I was running the code as is from the source of that web page.

If you put the sensor into water after turning on the power and starting the program, it is working normally.

If you turn on the power while submerged in water from the beginning, measurements will not be accurate.

This is a similar problem reported over two years ago at the URL I cited a while back.