#define potPin A5
int potValue;
void setup() {
Serial.begin(9600);
}
void loop() {
int newPotValue = analogRead(potPin);
if (newPotValue != potValue){
potValue = newPotValue;
Serial.println(potValue);
}
}
#define potPin A5
int potValue;
void setup() {
Serial.begin(9600);
}
void loop() {
int newPotValue = analogRead(potPin);
if (newPotValue != potValue){
potValue = newPotValue;
Serial.println(potValue);
}
}