#include <LiquidCrystal.h>
LiquidCrystal Icd(12, 11, 5, 4, 3, 2);
const int sensor = A1;
float tempc;
float tempf;
float vout;
void setup() {
pinMode(sensor, INPUT);
Serial.begin(9600);
Icd.begin(16, 2);
delay(500);
}
void loop() {
vout = analogRead(sensor);
vout = (vout * 500) / 1023;
tempc = vout;
tempf = (vout * 1.8) + 32;
Icd.setCursor(0, 0);
Icd.print("in DegreeC=");
Icd.print(tempc);
Icd.setCursor(0, 1);
Icd.print("in Fahrenheit=");
Icd.print(tempf);
delay(1000);
}