Temperature and humidity sensors

How RTDs, thermistors, thermocouples and capacitive RH sensors work, and how heat, sunlight and damp air make their readings wrong.

Core

Why a temperature and humidity sensor reads its own surroundings Sunlight and heat from the board warm the sensor above the air, so temperature reads high and relative humidity low. Below: how a capacitive humidity sensor works, how high humidity makes it drift, and what one IMD tender asked for. The sensor reads its own temperature Sunlight unshielded: up to 25 K, extreme Board heat processors, displays Sensor warmer than the air Temperature: high RH: low At 90 %RH, 1 °C of error = 5 %RH Fix: shield it from sun and warm air; isolate it from the board Capacitive RH sensor Water vapour Permeable electrode Polymer film Electrode Film absorbs water in proportion to RH, changing its capacitance High humidity drift Reads 100 %RH at 95 %RH WMO's example; usually upwards +3 %RH after 60 h above 80 %RH one maker; recovers in normal conditions After extreme exposure: 10 h at 100 to 105 °C, then 12 h at 20 to 30 °C, ~75 %RH IMD weather station tender (2022): asked for RH sensor ±3 %RH or better Pt100, with shield ±0.35 °C or better Shield, natural ventilation at least 9 louvres
Sunlight and board heat warm the sensor above the air, so temperature reads high and RH low. Below: how a capacitive RH sensor works and how damp air makes it drift.

Key points

  1. A Pt100 platinum RTD has a resistance of 100 Ω at 0 °C that rises almost linearly with temperature; its resistance-temperature relationship is standardised in IEC 60751.12
  2. An NTC thermistor's resistance falls as temperature rises, steeply and non-linearly, so readings must be linearised in software, for example with the Steinhart-Hart equation, a polynomial fit or a lookup table.3
  3. A thermocouple generates a voltage from the temperature difference between its junctions (the Seebeck effect), so it needs cold-junction compensation to report an absolute temperature.4
  4. Relative humidity (RH) is the water vapour pressure in air as a percentage of the saturation vapour pressure at the same temperature. Warm air can hold more water, so RH changes when temperature changes even if the water content does not. The dew point is the temperature at which that air would be saturated.56
  5. A capacitive RH sensor's active part is a polymer film between two electrodes, the top one permeable to water. The film absorbs water in proportion to RH, changing its dielectric properties and capacitance. WMO calls it meteorology's leading technology; electronic RH sensors are common in automatic weather stations.5as of 18 November 2026
  6. One maker's datasheet for a digital RH sensor family gives typical accuracy of ±1.0 to ±1.8 %RH at 25 °C mid-range, wider near 0 and 100 %RH; hysteresis 0.8 %RH; drift typically under 0.2 %RH a year in normal use; best performance at 5 to 60 °C and 20 to 80 %RH. All are for the bare sensor.7
  7. High or condensing humidity can make RH sensors drift, usually upwards; WMO's example: 100 %RH read at 95 %RH. One maker gives +3 %RH after 60 h above 80 %RH, recovering by itself in normal conditions. After extreme exposure it suggests 10 h at 100 to 105 °C below 5 %RH, then 12 h at 20 to 30 °C and about 75 %RH.578
  8. One maker's design guide says heat from nearby processors, power electronics or displays, mostly through the circuit board, makes temperature read high and RH low; in extreme cases such as 90 %RH, 1 °C of error gives 5 %RH. It advises distance, thin traces, milled slits round the sensor and shielding from heated air.6
  9. A thermometer exposed in the open absorbs radiation; WMO says usual operational ones may differ from air by 25 K in extremely unfavourable conditions, so shield them. A louvred screen can still read high in strong sun and calm wind, perhaps 2.5 K in extreme cases; a sun-warmed screen can make RH read falsely low.95
  10. In a 2022 tender for satellite weather stations, the India Meteorological Department asked for a capacitive or solid-state RH sensor accurate to ±3 %RH or better including non-linearity, hysteresis and repeatability, and a Pt100 accurate to ±0.35 °C or better in a naturally ventilated shield of at least 9 louvres.10as of 18 November 2026

Common mistakes

  • Mounting a humidity sensor right next to a processor or display, then trusting the RH it reports. Their heat makes the sensor read temperature high and RH low.
  • Leaving a temperature and humidity sensor in the sun without a radiation shield, or in a screen that heats up, and treating it as air temperature.
  • Trusting a reading near 100 %RH after a long spell of high or condensing humidity. High humidity can push polymer sensors to read high, for example 100 %RH at 95 %RH.