int photocellPin = 2;
int photocellReading;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
photocellReading = analogRead(photocellPin);
Serial.print("Analogreading=");
Serial.println(photocellReading);
delay(1000);
}