const int photoresistorPin = A0; // Analog pin connected to the photoresistor
void setup() {
Serial.begin(9600); // Initialize serial communication
}
void loop() {
// Read the analog value from the photoresistor
int sensorValue = analogRead(photoresistorPin);
// Print the sensor value to the Serial Monitor
Serial.print("Sensor Value: ");
Serial.println(sensorValue);
// Wait for a short duration before reading again
delay(1000);
}