# include <LiquidCrystal_I2C.h>
const float BETA = 3950;
LiquidCrystal_I2C lcd(0x27, 20, 4); // LCD Namen zuweisen
void setup() {
lcd.init();
lcd.backlight();
}
void loop()
{
// Anzeige LCD
lcd.clear();
lcd.setCursor(0, 0);
int analogValue = analogRead(A0);
float celsius = 1 / (log(1 / (1023. / analogValue - 1)) / BETA + 1.0 / 298.15) - 273.15;
lcd.print("Temp.: ");
lcd.print(celsius);
lcd.print(" \337C");
delay(1000);
}