No soldering
No soldering — weather and air quality on a Raspberry Pi
A BME680 in a Breakout Garden HAT measures temperature, humidity, pressure and air quality, with nothing to solder.
Parts
- BME680 Breakout - Air Quality, Temperature, Pressure, Humidity Sensor $48.55 In stock
- Breakout Garden HAT $28.65 In stock
Wiring
- Breakout Garden HATFits onto the Raspberry Pi's 40-pin GPIO header
- BME680 breakoutPush into any Breakout Garden slotwith the sensor facing out
Set it up
- Turn on I²C in Raspberry Pi Configuration (Interfaces tab), or with sudo raspi-config → Interface Options → I2C.
- Check the sensor is found: sudo i2cdetect -y 1 should show 76.
- Install Pimoroni's library in a virtual environment: pip install bme680.
- Run the example below. Allow about 20 minutes of burn-in before trusting air-quality readings.
import bme680
sensor = bme680.BME680(bme680.I2C_ADDR_PRIMARY)
if sensor.get_sensor_data():
print(sensor.data.temperature, "°C")
print(sensor.data.humidity, "% RH")
print(sensor.data.pressure, "hPa")
Sources: BME680 Python library (Pimoroni), Raspberry Pi documentation: configuration