int reading = analogRead(0);
Test A0 1023Test A0 1023Test A0 1010Test A0 973Test A0 955Test A0 948Test A0 924Test A0 907Test A0 896Test A0 878Test A0 870Test A0 832Test A0 800Test A0 768Test A0 750Test A0 720Test A0 669Test A0 650Test A0 635Test A0 609Test A0 568Test A0 520Test A0 488Test A0 455 -<---resettingTest A0 455Test A0 458Test A0 469Test A0 464Test A0 466Test A0 467
I'd like to use it as an analog input for a switch. From what I've read and been told it must not drop below a certain voltage. Firstly, is that statement true?
If so, what is that voltage? I'm confused as to what the data sheet is actually defining.
Secondly, how on earth would I connect one up and what would it look like in the sketch? Would it just be like any other switch? I assume if it were to input at 0 @ 0v (open) it wouldn't even reset? And if it were to switch and send input value 1 (or 255) @ 5V it would be fine?