I plan to use your BME690 breakout, PIM769, with a Raspberry Pi 5 to record outdoor temperature, relative humidity and atmospheric pressure alongside anemometer readings.
I will use these measurements to calculate moist-air density, including during sub-zero winter conditions. Gas measurements are not required, and I intend to disable the gas heater.
Could you please confirm whether the compensated relative humidity reported by your Python library is referenced to saturation over liquid water, including below 0 °C, or to saturation over ice?
Does the library perform any automatic change of reference below freezing?
A reference to the relevant Bosch documentation would be particularly helpful.
You should read the datasheet (google for “bme690 datasheet”). The BME datasheets are very long and technical (in this case 60 pages), so you need to take some time.
The BME690 is specified for -40°C to 85°C for humidity, but full accuracy is only above zero. So not really what you are looking for.
I wonder why you are choosing this expensive sensor. The cheap BME280 will do just fine for your use-case. And the bias you introduce by using a Pi5 is far bigger than anything the BME690 will give you over the BME280 (for humidity there are no differences btw).
@geoff.fairlough On the library part: the Pimoroni bme690 Python library does not switch reference below 0 °C. _calc_humidity() in bme690/__init__.py is a direct port of Bosch’s integer compensation (raw ADC value, calibration constants par_h1…par_h6 and the compensated temperature in, %RH out). There is no branch on temperature and no ice conversion anywhere in it.
On what the number means physically: capacitive polymer RH sensors are calibrated against water-saturation references, and the WMO convention is also RH with respect to water, including below 0 °C. I could not find a sentence in the BME690 datasheet that states this explicitly, so if you need it in writing, Bosch Sensortec support is the authoritative source.
For moist-air density you don’t actually need RH over ice, you need the vapour pressure e. With RH over (supercooled) water:
e = RH/100 × e_w(T), e_w(T) = 6.1094 × exp(17.625·T / (T + 243.04)) hPa (Magnus, Alduchov & Eskridge 1996, T in °C)
ρ = (p − e)/(R_d·T_K) + e/(R_v·T_K), with R_d = 287.05 J/(kg·K), R_v = 461.5 J/(kg·K), p and e in Pa.
If you ever want RH over ice for display: RH_i = RH_w × e_w(T)/e_i(T), e_i(T) = 6.1121 × exp(22.587·T / (T + 273.86)) hPa. At −10 °C the ratio is about 1.10, so 90 %RH over water is roughly 99 % over ice.
Two practical points for an outdoor Pi 5 build: keep the breakout on a cable inside a radiation shield, away from the Pi’s heat (a few tenths of a degree of self-heating matters a lot for RH near 0 °C); and with the gas heater off, use forced mode at a modest sample rate to keep sensor self-heating down. Below 0 °C I’d also do one comparison against a reference hygrometer, since full humidity accuracy is only specified above zero.