Temperature Sensor Module (Analog)
Please note: We now sell a 37 sensors kit that includes this module and many others.
This is a basic temperature sensor module that uses an NTC thermistor. It can measure temperatures between -55 and 125 degrees C, with an accuracy of plus or minus 0.5 degree.
- S - Analog output signal
- - - Ground connection
- + (middle pin) - 5VDC supply connection
Converting from an analog value to a temperature reading
This is a piece of example Arduino code that can read this sensor and give you a temperature in degrees C.
double temp = log(10000.0 * (1024.0 / rawValue - 1)); temp = 1 / (0.001129148 + (0.000234125 + (0.0000000876741 * temp * temp)) * temp); // At this point, the temperature is in degrees Kelvin, so we subtract 273.15 to change to degrees C. temp = temp - 273.15; // temp is now the temperature of the thermistor.