#include <LiquidCrystal_I2C.h>
#define LDR 26
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
// put your setup code here, to run once:
lcd.init();
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("Banary Source");
pinMode(LDR, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
lcd.setCursor(0, 1);
int adcValue = analogRead(LDR);
lcd.print(adcValue);
delay(100); // this speeds up the simulation
}