// Define the LDR pin
const int ldrPin = 34;
void setup() {
Serial.begin(9600);
}
void loop() {
// Read the analog value of the LDR
int ldrValue = analogRead(ldrPin);
// Print the analog value to the serial monitor
Serial.print("LDR value: ");
Serial.println(ldrValue);
// Wait for 500 milliseconds
delay(500);
}