#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);
const int sensorPin = A0;
void setup() {
lcd.begin(16, 0);
Serial.begin(9600);
pinMode(sensorPin, INPUT);
}
void loop() {
int sensorValue = analogRead(sensorPin);
Serial.print("LDR Value: ");
Serial.println(sensorValue); // Print LDR value to serial monitor
lcd.print(sensorValue );
lcd.println(sensorValue);
delay(1000);
}