#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("Mecatronica");
pinMode(LDR , INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
lcd.setCursor(3, 1);
int adcValue = analogRead(LDR);
lcd.print(adcValue);
delay(1); // this speeds up the simulation
}