int sensorValue = 0; //set the variable void setup() { Serial.begin(9600); } void loop() { sensorValue = analogRead(A0); // read the analog in value: // print the results to the Serial Monitor: Serial.print("sensor = "); Serial.print(sensorValue); delay(500);// wait 0.5 seconds to make more readable in output monitor }