int analogPin = 26; int val = 0; // variable to store the value read void setup() { Serial.begin(115200); // setup serial } void loop() { val = analogRead(analogPin); // read the value at the pin Serial.println(val); delay(20); }