void setup() { Serial.begin(9600); // sets the serial port to 9600 } void loop() { Serial.println(analogRead(0), DEC); // prints the value OF analog input pin 0 delay(1000); // wait 1s for next reading }