#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
lcd.init();
lcd.backlight();
}
void loop() {
int analogValue = analogRead(A0);
float voltage = analogValue * (5.0 / 1023.0);
lcd.setCursor(0, 0);
lcd.print("Voltage: ");
lcd.print(voltage, 2);
delay(500);
}