Actually the issue with inaccurate water level measurements when the sensor is submerged at power-up can be addressed by adding a delay in the Arduino or Raspberry Pi PICO code’s setup() function, allowing the sensor to stabilize before reading data.
For instance, a delay of 1 second can be added. Additionally, ensure that the sensor has adequate time to warm up, as some sensors require it. If the problem persists, consider using a pull-up or pull-down resistor on the sensor’s signal pin to maintain a consistent state during initialization, preventing erratic readings. Calibration and filtering techniques can further enhance measurement accuracy in challenging scnarios.