#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
float val,val1 = 0;
void setup() {
lcd.init();
lcd.backlight();
}
void loop() {
val = analogRead(A0);
val1 = val/1024*5.0;
lcd.setCursor(0,0);
lcd.print("ADC value " + String(val,0) + " " );
lcd.setCursor(0,1);
lcd.print("U = " + String(val1) + " V ");
delay(300);
}