#include <LiquidCrystal.h>
int RS=0, E=1, D4=2, D5=3,D6=4,D7=5;
LiquidCrystal LCD(RS,E,D4,D5,D6,D7);
float temp , tempc, tempf;
int sans = A0;
void setup() {
LCD.begin(16,2);
}
void loop() {
temp = analogRead(sans);
tempc = (temp*4.88)/10;
tempf = (temp*1.8)+32;
LCD.setCursor(0,0);
LCD.print("temp in c =");
LCD.println(tempc);
LCD.setCursor(0,1);
LCD.print("temp in f =");
LCD.println(tempf);
}