int analogPin = 28; // potentiometer wiper (middle terminal) connected to analog pin GP28(pin nr 34/ADC2) // outside pins connected to GND and 3.3V int val = 0; // variable to store the value read void setup() { Serial.begin(9600); // setup serial } void loop() { val = analogRead(analogPin); // read the input pin Serial.print("Value:"); // value name Serial.println(val); // debug value delay(200); }