Hey guys.
I tried creating a simple code to tell me the position of a potentiometer. But I can't make it work... The value is changing all the time (By only 1-2. But still). I can't make it be stable. Also, sometimes, when I touch the potentiometer, it goes straight to the max value
This is the code :
val = analogRead(A0); // The potentiometer is connected to the A0 pin.
Serial.println(val);
What can I do?