int analogPin = 1; int analogValue; void setup() { analogValue = 0; } void loop() { // read analog input analogValue = analogRead(analogPin); }