#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C LCD = LiquidCrystal_I2C(0x27, 16, 2);
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
LCD.init();
LCD.backlight();
}
void loop() {
//char buffer[3];
// put your main code here, to run repeatedly:
unsigned int a = analogRead(A3);
float voltage = (a*100) / 4095;
LCD.clear();
LCD.print(voltage);
LCD.print(" Volt");
//dtostrf(voltage, 3, 1, buffer);
delay(1000); // this speeds up the simulation
}