// CONSTANTS: const int buttonPin = A0; // the number of the pushbutton pin // VARIABLES: int photoVal; // variable for reading the pushbutton status void setup() { // initialize the pushbutton pin as an input: pinMode(buttonPin, INPUT); Serial.begin(9600); } void loop() { // read the state of the pushbutton value: photoVal = analogRead(buttonPin); Serial.println(photoVal); delay(10); }