#include <TinyWireM.h>
#include <Tiny4kOLED.h>
const float BETA = 3950; // should match the Beta Coefficient of the thermistor
int Delta = 5;
int analogValue = 500;
void setup()
{
oled.begin();
oled.clear();
oled.on();
oled.setFont(FONT6X8);
}
void loop()
{
float celsius = 1 / (log(1 / (1023. / analogValue - 1)) / BETA + 1.0 / 298.15) - 273.15;
//oled.clear();
oled.setCursor(0, 0);
oled.print("Temp.: " + String(celsius) + " Grad");
//oled.switchFrame();
analogValue = analogValue - Delta;
delay(1000);
}