#include<LiquidCrystal.h>
LiquidCrystal lcd(2, 3, 4, 5, 6, 7); //(RS, E, D4, D5, D6, D7)
int ar = 0, v = 0, t = 0;
char y = 223;
void setup() {
lcd.begin(16, 2);
}
void loop() {
ar = analogRead(A0);
delay(100);
// how to convert analog to digital see here: https://pijaeducation.com/adc-in-arduino/
v = ar * 4.887;
t = v / 10;
lcd.setCursor(0, 0);
lcd.print("AR:");
lcd.println(ar);
lcd.setCursor(8, 0);
lcd.print("mV:");
lcd.println(v);
lcd.setCursor(0, 1);
lcd.print("Temperature:");
lcd.print(t);
lcd.print(y);
delay(1000);
lcd.clear();
}