Hi,
The output voltage on the MP3V5050 is ratiometric, this means that output voltage of the sensor is directly affected by the voltage supply. Make sure the input supply voltage is constant. Also make sure that that you properly installed the power supply decoupling and output filtering capacitors as shown in Figure 5 of the datasheet: https://www.nxp.com/docs/en/data-sheet/MP3V5050.pdf
Another possible cause is the pressure connected on port P2 of the MP3V5050DP, if I understand correctly, you are using the differential (two ported) version of the sensor, and you are only using Port P1 to measure the water level, while port P2 is unconnected, is my understanding correct?
If it is correct, the local atmospheric pressure can be changing causing a change in the reference of the pressure measurement, which cause a shift on the output voltage of the sensor.
Have a great day,
Jose
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------