In this episode we will look at potentiometers and how to use them with the Serial monitor..
Check us out on Facebook!
The Code:
int pot;
void setup() {
Serial.begin(9600);
}
void loop() {
pot = analogRead(A0);
Serial.print(“Value = “);
Serial.println(pot);
delay(250);
}