#define NTC A0
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
void setup() {
Serial.begin(9600);
lcd.init();
lcd.backlight();
lcd.print("KruPraphas");
lcd.setCursor(0,1);
lcd.print("Temp: ");
}
void loop() {
float tempC = 1 / (log(1 / (1023. / analogRead(NTC) - 1)) / 3950 + 1.0 / 298.15) - 273.15;
lcd.setCursor(6,1);
lcd.print(tempC,1);
lcd.print((char)223);
lcd.print("C ");
delay(1000);
}