#include <LiquidCrystal.h>
LiquidCrystal lcd (0,1,2,3,4,5);
void setup() {
lcd.begin(16,2);
// put your setup code here, to run once:
lcd.print("Temp is :");
}
void loop() {
// put your main code here, to run repeatedly:
lcd.setCursor(0,1);
int tempvalue=analogRead(A0);
const float BETA = 3950;
//
float celsius = 1 / (log(1 / (1023. / tempvalue - 1)) / BETA + 1.0 / 298.15) - 273.15;
lcd.print(celsius);
}