#define POTPIN 4
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(POTPIN, INPUT);
}
int pot = 0;
void loop() {
// put your main code here, to run repeatedly:
pot = analogRead(POTPIN);
Serial.println(pot);
delay(10); // this speeds up the simulation
}