I am developing simple project of water level alert when water reaches to a certain level (adjusted by user) in inches.
Which electronic component i should use where user can adjust inches?
Like 5, 6, 7 .... 20 inches.
I have searched a lot over internet and found Potentiometer can be used for this purpose. But it is not accurate and depends of input voltage/current etc...
I need smaller component because it will be used in 3x3 inches circuit board with Arduino.