@shehryar said in Connecting and reading Water level sensor:

The sensor itself is supposed to read 3.3v when there is no water and 5v at max water level.

I expect this is the main issue. The Duet expects inputs in the range 0 to 3.3V. Please provide a link to the water level sensor specification. You may be able to use an Arduino to do the conversion, eg something like this: https://docs.duet3d.com/en/User_manual/Tuning/Triggers#water-flow-sensor-failsafe.

Ian