Use a rod that goes up with the increase of water which will obstruct the path of a horizontal laser line. When that rod gets too low it will stop obstructing it, thus changing the state of the sensor.
If you need a drawing let me know.
This will work only if you can add something into the tank besides water.
If you need a drawing let me know.
This will work only if you can add something into the tank besides water.