#include <LiquidCrystal.h>
/* Display */
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);
void setup() {
Serial.begin(115200);
lcd.begin(16, 2);
}
void loop() {
int sensorValue = analogRead(A0);
float voltage = sensorValue * (5.0 / 1023.0);
float temperatureC = (voltage - 0.5) * 100;
lcd.setCursor(0,0);
lcd.print("ADC = ");
lcd.print(sensorValue);
lcd.print(" V = ");
lcd.print(voltage, 2);
lcd.print(" temp = ");
lcd.print(temperatureC);
lcd.print("C");
}