justvervaart:
I found the problem. I had the potmeter hooked on the 5v and GND of another arduino (the master) and to pin A3 of the slave, where the sketch is running. I didn't think that would matter, but does... Anybody able to explain why?
WHAT OTHER ARDUINO? ? ? ?
There is only ONE Arduino in the link and diagram you referred too, saying;
[u]**I connected a potmeter to my arduino like in this tutorial. https://www.arduino.cc/en/tutorial/potentiometer**[/u]
No you didn't!
Why connect to another Arduino when the tutorial shows you don't?
Tom... :o