YOU NEED
QUIK TIP
» HAVING FUN WITH SENSE HAT
ᐳ Any Pi model
The DS18B20 needs screw terminals for breadboard use, otherwise the fragile wires will break. Another approach is to use ferrules. These add a sheath over the wires and mechanically clamp the DS18B20 wires in a rugged enclosure.
Raspberry Pi’s Sense HAT are packed with sensors including a temperature sensor. Sense HAT features a combined temperature and humidity sensor, accelerometer (measuring forces) gyroscope (orientation) and a magnetometer (magnetic forces such as magnetic north). Because the board is a HAT, it’s designed for easy use, on top of the Raspberry Pi GPIO. This does cause a small problem: your temperature data will be incorrect. The temperature sensor, located on the top right of the board, will detect the heat of the HAT, which is directly above the CPU, RAM and PCIe chip of the Raspberry Pi 4. You can move the Sense HAT off the Raspberry Pi using a breakout board, but this is more wires and complexity. For simple projects, the DHT11 and the DHT22 can’t be beaten. We only need three wires and a little Python code to make the most of our sub-£5 purchase.
OUR EXPERT
ᐳ The latest Pi OS