#include <math.h>double Thermistor(int RawADC) { double Cal; Cal = log(10000.0/((1024.0/RawADC-1))); Cal = 1 / (0.001129148 + (0.000234125 + (0.0000000876741 * Cal * Cal ))* Cal ); Cal = Cal - 273.15; /* Convert Kelvin to Celcius */ return Cal;}void setup() { Serial.begin(115200);}void loop() { float Temp=Thermistor(analogRead(A0)); Serial.println(Temp); delay(1000);}