// Pin definition
const int ldrPin = 34; // GPIO pin connected to the LDR and resistor
void setup() {
// Start the Serial communication
Serial.begin(115200);
}
void loop() {
// Read the analog value from the LDR
int ldrValue = analogRead(ldrPin);
// Print the LDR value to the serial monitor
Serial.print("LDR Value: ");
Serial.println(ldrValue);
// Delay for a short period before taking the next reading
delay(1000); // You can adjust the delay as needed
}