// the value of the 'other' resistor #define SERIESRESISTOR 10000 // What pin to connect the sensor to #define THERMISTORPIN A5 void setup(void) { Serial.begin(9600); } void loop(void) { float reading; reading = analogRead(THERMISTORPIN); Serial.print("Analog reading "); Serial.println(reading); // convert the value to resistance reading = -0.225*reading+231.65; // formula to convert analogue reading to temperature (Deg C) Serial.print("The temperature is "); Serial.print(reading); Serial.println(" Degrees C"); Serial.println(" "); delay(1000); }