If I change the pressure in which the water level rises or falls, I also get measured values for the rise / fall of the pressure BUT this value is not retained. After the rise, for example, the pressure falls back to the basic level.
What am I doing wrong? The pressure should actually remain the same as long as the water level does not change.
Sorry for the late reply.
I rejected the implementation using a pressure sensor. Far too vulnerable as a sensor in the RV tank.
In my opinion, the problems described above have the following causes, which would be too difficult to resolve:
The sensor is very sensitive in terms of tightness and robustness. Slight changes during testing / modification also change the sensor so that repeatable results are not achieved.
The hose has to be really tight. The hose must be thick. If he gives in, it distorts the values.
No water may spill up to the sensor.
The external pressure must be included in the formula otherwise the values are not constant and the weather has an influence on the data.
I have now switched to a ToF sensor for my water tank in the motorhome. It uses a laser to measure the distance from the supply opening to the water surface. I build the whole thing in a 3D reprint of the supply cover including battery operation.
Just as waterproof as the air pressure sensor. I placed/protected it directly behind a thin plexiglass pane, which worked without any problems. She just has to be thin. I think 0.4mm.
Because I’m currently using it, there’s another one that can measure further.
Importantly, he doesn’t like direct sunlight. But that’s not a problem in a tank.