int LDR_value = 0;
int LDRvalue = 0;
#define LDRValue A0
void setup()
{
pinMode(LDRValue, INPUT);
Serial.begin(9600);
}
void loop()
{
// read the value from the LDR sensor
LDRvalue = analogRead(LDRValue);
// Print the sensor reading to the serial monitor
Serial.print("The LDR value is");
Serial.println(LDRvalue);
delay(1000); // Wait for 1000 millisecocnd(s)
}