Convert mV to temperature for a TMP36 or any linear analog sensor: enter millivolts or volts to get °C, °F and K, or convert a temperature back to mV.

TMP36 is specified from −40 to 125 °C. Not for thermocouples, which need a nonlinear reference table.

Display precision

Calculator Functions

FunctionWhat it doesWhat it requires
Temperature from voltageConverts the output voltage of a linear temperature sensor to a temperatureRequires the sensor calibration and the sensor output voltage in mV or V
Voltage from temperatureFinds the voltage a linear temperature sensor puts out at a temperatureRequires the sensor calibration and the temperature in °C, °F or K

The sensor calibration is either the TMP36 (500 mV at 0 °C and 10 mV per °C) or a custom linear sensor, which adds two inputs: the output at 0 °C in mV and the sensitivity in mV per °C. Temperature results can be shown in °C, °F or K and voltage results in mV or V, with 1 to 4 decimal places. Every result lists the temperature in all three units and the voltage in both.

mV to Temperature Formulas

T = (mV − 500) ÷ 10 [1]
TTemperature (°C)
mVSensor output voltage in millivolts
500TMP36 output at 0 °C (mV)
10TMP36 scale factor (mV per °C)

The TMP36 has a scale factor of 10 mV/°C and puts out 750 mV at 25 °C, which places 0 °C at 500 mV [1]. Each 1 mV change in its output is therefore 0.1 °C. A reading of 1 mV by itself is not a valid TMP36 output: it would mean −49.9 °C, below the −40 °C the sensor is specified for [1].

Temperature from voltage

The formula above applies directly. 750 mV is (750 − 500) ÷ 10 = 25 °C, or 77 °F. 1,200 mV is 70 °C. A reading in volts is multiplied by 1,000 first, so 0.75 V is also 25 °C.

T = (mV − offset) ÷ slope

A custom linear sensor uses its own offset and sensitivity. A sensor with no offset and 10 mV/°C, such as the TMP35 with its 250 mV output at 25 °C [1], reads (250 − 0) ÷ 10 = 25 °C.

Voltage from temperature

mV = 500 + 10 × T

A TMP36 at 30 °C puts out 500 + 10 × 30 = 800 mV. A temperature in °F or K is converted to °C first: 98.6 °F is 37 °C, which gives 870 mV.

Thermocouple mV to Temperature

A thermocouple millivolt reading cannot be converted with these formulas. Its voltage does not rise in a straight line with temperature, and it depends on the thermocouple type. NIST publishes voltage against temperature tables for types B, E, J, K, N, R, S and T, with the coefficients of their reference functions [2]. Use the table for the thermocouple type in question.

TMP36 mV to Temperature Table

Output (mV)°C°F
100-40-40
300-20-4
400-1014
500032
6001050
7002068
7502577
8003086
90040104
1,00050122
1,25075167
1,500100212
1,750125257

Limits of This Estimate

  • The TMP36 conversion is the nominal one. The sensor’s typical accuracy is ±2 °C over its temperature range [1], so decimals in the result are not real precision.
  • TMP36 results outside −40 °C to 125 °C, the range the sensor is specified for [1], are rejected.
  • The custom sensor function assumes a straight-line output and does not check the range of the sensor. It cannot be used for thermistors, RTDs or thermocouples, which are not linear.
  • A noisy supply or analog-to-digital reference changes the measured voltage, and the error carries straight into the temperature.

Sources

  1. Analog Devices, TMP35/TMP36/TMP37 Low Voltage Temperature Sensors data sheet, Rev. F: the TMP36 scale factor, output at 25 °C, specified range and typical accuracy
  2. NIST, Temperature Scale Database (SRD 60), ITS-90 thermocouple tables: thermocouple voltage tables by type