const int photoresistorPin =A0;
int sensorValue;
void setup() {
Serial.begin(9600);
pinMode(photoresistorPin, INPUT);
}
void loop() {
sensorValue = analogRead(photoresistorPin);
Serial.print("sensor value:");
Serial.print(sensorValue);
delay(1000);
}