Hi,
I'm trying to connect a water level sensor on the IO_5, but can't seem to get a correct reading from it. I tried to add the following in the config.g file:
M308 S0 P"io5.in" Y"linear-analog" A"Water Level" F0 B0 C1
The sensor reads values decreasing exponentially, meaning the higher the water level goes, the slower the value increases and it maxes out at 0.7.
The sensor itself is supposed to read 3.3v when there is no water and 5v at max water level.
Kind Regards,
Shehryar.