Temperature Sensors for Raspberry Pi: 2026 Buying Guide
Hardware used in this build
- DS18B20 (x8)
Waterproof DS18B20 probe with stainless steel sleeve, includes 4.7kΩ resistor. Buy the 2-pack. - DHT22
Used in the running shed build; works reliably. - BMP180
BMP180 is what's in the shed node (had it lying around); BME280 is the current part, adds humidity, and is what I'd buy today.
This guide is generated from data/guides.json and data/parts.json. Don’t edit by hand — edit the data.
Comparison
| Part | Role | Interface | Verdict | Price |
|---|---|---|---|---|
| DS18B20 (x8) | 1-Wire temp probes (house) | Pi 4 w1-gpio bus, mixed 9/12-bit | yes | — |
| Waterproof DS18B20 probe with stainless steel sleeve, includes 4.7kΩ resistor. Buy the 2-pack. | ||||
| DHT22 | Outside air temp + humidity | GPIO 0 | yes | — |
| Used in the running shed build; works reliably. | ||||
| BMP180 | Pressure + internal temp | I2C 0x77 | yes (use BME280 instead) | — |
| BMP180 is what’s in the shed node (had it lying around); BME280 is the current part, adds humidity, and is what I’d buy today. |
Verdict
Pick the part that matches your interface and accuracy needs. If you need humidity, prefer BME280 over BMP180. For long 1-Wire runs, DS18B20 is the most robust choice.
Disclosure: SensorRig is reader-supported. Some links may be affiliate links; if you buy through them I may earn a commission at no extra cost to you.
Related reading
- How to Spot a Fake DS18B20 Temperature Sensor on a Raspberry Pi
Spot a fake DS18B20 on a Raspberry Pi: family-code check, sysfs CRC test, and ice/boil calibration against the datasheet. 3 of 7 probes in one batch were counterfeits, drifting 1.5–3.5 °C.
- SQLite Rollups and Retention: Stop Your Sensor DB From Eating the SD Card
How rollup tables and a retention policy keep a Raspberry Pi sensor SQLite database from growing unbounded — and why SD-card wear is rarely the real problem.
- CT Clamp Burden Resistor Calibration for ADS1115 on Raspberry Pi
CT clamp burden resistor calibration for ADS1115 on Raspberry Pi: pick the external burden, stabilise with a decoupling cap, and apply the DC-bias correction that separates a stable watt reading from drift — with the 51 Ω + 10 µF combination I actually measured.