// Define the analog pin connected to the LDR module
const int LDR_PIN = 35; // You can change this to your connected pin (GPIO32, GPIO33, etc.)
void setup() {
// Initialize Serial Monitor
Serial.begin(115200);
Serial.println("LDR Module Reading Example");
}
void loop() {
// Read the analog value from the LDR module
int ldrValue = analogRead(LDR_PIN);
// Print the LDR value to the Serial Monitor
Serial.print("LDR Value: ");
Serial.println(ldrValue);
// Optional: add a small delay to avoid flooding the Serial Monitor
delay(500);
}