Hi!
You can use a comparator as an interface between sensors and microcontroller (LM324, LM339). In this way you can use the pins as digital inputs.
Also, you can set the comparator threshold using a variable resistor for different surfaces without any change into your code.
BR,
Adrian
You can use a comparator as an interface between sensors and microcontroller (LM324, LM339). In this way you can use the pins as digital inputs.
Also, you can set the comparator threshold using a variable resistor for different surfaces without any change into your code.
BR,
Adrian