What you'll build
A small weather and indoor-air monitor: temperature, humidity, pressure and air quality indoors from a BME680, plus the temperature outside from a waterproof probe if you want it, logged over Wi-Fi to a dashboard such as Home Assistant or Grafana.
- Difficulty
- Intermediate
- Build time
- 2–3 hours, including a little soldering
- Parts
- 9 parts to choose
Build total
$121.47
Shopping list
One recommended part for each job, checked against the others. Swap any of them, or skip what you already own.
We changed the build to keep it working
- Storage: not needed, because the Raspberry Pi Pico 2WH provides somewhere to keep the program.
-
See all Raspberry Pi Boards
Board Required
A Raspberry Pi Zero with headers fitted runs Linux and Python. A Pico 2 WH runs MicroPython and uses far less power. Both have Wi-Fi.
- Note: The Raspberry Pi Zero 2 WH - with soldered headers we recommend is out of stock, so the build uses the Raspberry Pi Pico 2WH ($19.41 less).
-
See all Power Supplies
Power Required
Both the Zero and the Pico take micro-USB power; this 2.5A supply has plenty in hand.
-
See all Storage
Storage Required
A Raspberry Pi Zero runs from a microSD card; this one has Raspberry Pi OS on it already. A Pico keeps its program in its own flash, so it needs no card.
-
Indoor sensor Required
The BME680 measures temperature, humidity, pressure and air quality (from volatile organic compounds) over I²C. Its header comes loose, so this is the step that needs a soldering iron.
-
Outdoor probe Optional
A waterproof DS18B20 temperature probe on a 90cm lead, to put outside in the shade. It needs a 4.7kΩ resistor, below.
-
Probe resistor Optional
The probe's data wire needs a 4.7kΩ pull-up to 3.3V. This assortment has twenty.
-
Breadboard Optional
Holds the probe's wires and the resistor, and for the Pico build the Pico and the BME680 as well.
-
See all Prototyping & components
Jumper wires Optional
Male-to-female wires run from the Pi's header to the breadboard; male-to-male link points on the breadboard.
-
See all Cases
Case Optional
A clear Zero case that leaves the GPIO header open, so the BME680 still plugs on.
- Check: Not checked: the Clear Raspberry Pi Zero case with GPIO space isn't listed for Raspberry Pi Pico.
Your build
Pi Zero: indoors and outside · Raspberry Pi Pico 2WH
- Raspberry Pi Pico 2WH $15.44
- Raspberry Pi Power Supply (5V 2.5 Amp) $20.18
- Storagein the Raspberry Pi Pico 2WH
- BME680 Breakout - Air Quality, Temperature, Pressure, Humidity Sensor $48.55
- Waterproof DS18B20 Sensor Kit $10.65
- 600 pack of Resistors! $11.70
- 840-Point Breadboard $6.20
- 40 Pin Jumper Wire 15cm / M/F $5.10
- Clear Raspberry Pi Zero case with GPIO space $3.65
Worth checking
- Not checked: the Clear Raspberry Pi Zero case with GPIO space isn't listed for Raspberry Pi Pico.
Fits are checked against the makers' documentation and our own case records. Anything we haven't confirmed says “Not checked”.
Link to this build: bookmark or share it to come back to these choices.
8 parts
$121.47
How the build goes
For the parts in your shopping list. Change a part and these change with it.
-
Put MicroPython on the Pico
Hold BOOTSEL while you plug the Pico into your computer, then copy the MicroPython firmware for your board (Pico 2 W or Pico W) onto the drive that appears. Our MicroPython guide walks through it with Thonny.
It worked if Thonny's shell shows the MicroPython prompt (>>>).
-
Wire it on the breadboard
Push the Pico and the BME680 (with its straight header soldered on) into the breadboard. Join the BME680's power to the Pico's 3V3(OUT) (pin 36), ground to pin 38, SDA to GP4 (pin 6) and SCL to GP5 (pin 7).
It worked if In Thonny, machine.I2C(0).scan() returns [118] (0x76).
-
Wire the probe
Join the probe's red wire to 3V3(OUT) (pin 36), black to ground and yellow to GP22 (pin 29), with the 4.7kΩ resistor between yellow and red.
It worked if ds18x20.DS18X20(onewire.OneWire(machine.Pin(22))).scan() lists one sensor.
-
Read and send the readings
Save a main.py that reads the BME680 (Pimoroni lists Pico libraries for it) and the probe with the built-in onewire and ds18x20 modules, joins your Wi-Fi and sends the readings every minute, for example over MQTT with umqtt.simple. It runs every time the Pico powers up.
-
Chart the readings
Send them to Home Assistant over MQTT, or to InfluxDB and chart them in Grafana. Leave the indoor sensor away from the board's own warmth for the truest temperature.
Guides for this build
Questions
Can the board go outside?
Keep the board indoors or in a sealed enclosure, and run only the waterproof probe outside. Direct sun on any sensor gives readings that are far too high.
Zero or Pico?
The Zero runs Linux, so it can keep its own history, run a database or serve a dashboard itself. The Pico uses far less power and has nothing to update, but sends its readings to something else to store and chart.
More for this build
Show only parts that fit Raspberry Pi PicoDHT22 module with cable
SKU: LB-LR0102 | Brand: Pi Australia
The DHT22 (also known as AM2302 or RHT03) is a high-accuracy digital temperature and humidity sensor with a single-wire interface. Pre-calibrated and mounted on a breadboard-compatible module, it requires no additiona...
Delivered by Wed 9 Dec
BME680 Breakout - Air Quality, Temperature, Pressure, Humidity Sensor
SKU: PR-PIM357 | Brand: Pimoroni
The state-of-the-art BME680 breakout measures temperature, pressure, humidity, and indoor air quality. Its gas resistance readings react to changes in volatile organic compounds (VOCs) and can be combined with humidit...
Delivered by Wed 9 Dec
Waterproof DS18B20 Sensor Kit
SKU: DF-DFR0198 | Brand: Adafruit
A waterproof digital temperature sensor based on the popular DS18B20 chip. The stainless steel probe can be submerged in liquids or placed in harsh environments, making it ideal for monitoring aquariums, brewing, weat...
Delivered by Wed 9 Dec
ESP8266 IOT Weather Station Kit
SKU: EC-CRT13450K | Brand: Elecrow
Build your own wireless weather monitoring system with this ESP8266-based IoT kit. Featuring WiFi connectivity, it collects temperature, humidity, rain detection, and UV intensity data – displaying readings on the inc...
Delivered by Wed 16 Dec
Adafruit MS8607 Pressure Humidity Temperature PHT Sensor - STEMMA QT / Qwiic
SKU: AF-4716 | Brand: Adafruit
The Adafruit MS8607 is a factory-calibrated sensor that measures pressure, humidity, and temperature in a single compact package. Built around the TE Connectivity MS8607 chip, it delivers accurate environmental data o...
Delivered by Wed 9 Dec
LM75A Temperature Sensor I2C Interface Development Board Module For Raspberry Pi
SKU: LB-LS3579 | Brand: Pi Australia
The LM75A is a high-accuracy digital temperature sensor with an I2C interface, ideal for temperature monitoring in Raspberry Pi and microcontroller projects. With a wide measurement range of -55°C to +125°C and 0.125°...
Delivered by Wed 9 Dec
SparkFun CO₂ Humidity and Temperature Sensor - SCD41 (Qwiic)
SKU: SF-SEN-22396 | Brand: SparkFun
The SparkFun SCD41 Qwiic breakout features Sensirion's photoacoustic CO₂ sensor with integrated temperature and humidity measurement. Using the Qwiic connector system, you can easily daisy-chain this sensor with other...
Delivered by Wed 16 Dec
1-Wire Digital Temperature Sensor for Raspberry Pi
SKU: LB-LR-DIGI-TEMP-1M-UA | Brand: Pi Australia
A plug-and-play digital temperature sensor designed specifically for Raspberry Pi, on a 1m or 3m cable. Choose the assembled board to connect straight to your Pi's GPIO header—no breadboard, jumper wires, or soldering...
Delivered by Wed 9 Dec
Inky Frame 4.0" (Pico W Aboard) – Inky Frame + Accessory Kit
SKU: PR-PIM661 | Brand: Pimoroni
A compact 4" seven-colour E Ink photo frame and dashboard powered by Raspberry Pi Pico W. Features a vibrant 640×400 pixel ACeP display showing black, white, red, green, blue, yellow, and orange with ultra-wide viewin...
Delivered by Wed 9 Dec
Inky wHAT (ePaper/eInk/EPD)
SKU: PR-PIM408 | Brand: Pimoroni
A large 4.2" three-colour e-paper display HAT for Raspberry Pi, showing crisp black and white graphics with red or yellow that remain visible even in bright sunlight. The generous 400×300 pixel resolution provides amp...
Delivered by Wed 9 Dec
Raspberry Pi Pico 2W
SKU: RP-SC1633 | Brand: Raspberry Pi
The Raspberry Pi Pico 2W brings wireless connectivity to the RP2350 platform, combining the power of a dual-core processor with built-in Wi-Fi and Bluetooth 5.2. Build connected IoT devices, wireless sensors, and smar...
Delivered by Wed 9 Dec
Raspberry Pi Pico 2WH
SKU: RP-SC1633-2WH | Brand: Raspberry Pi
The Raspberry Pi Pico 2 WH combines the powerful RP2350 microcontroller with built-in Wi-Fi and Bluetooth connectivity, plus pre-soldered headers for immediate breadboard use. It's the most capable Pico yet, ready for...
Delivered by Wed 9 Dec
Raspberry Pi Sense HAT V2
Brand: Raspberry Pi
The Sense HAT packs a set of sensors, an 8×8 RGB LED matrix and a five-button joystick onto one board for your Raspberry Pi. It measures temperature, humidity, air pressure, colour and brightness, orientation and move...
Delivered by Wed 9 Dec
Solar Lipo Charger (3.7V)
SKU: DF-DFR0264 | Brand: DFRobot
This solar LiPo charger provides intelligent charging for single-cell 3.7V lithium batteries from solar panels or other DC sources. With input reverse polarity protection and LED status indicators, it makes building s...
Delivered by Wed 16 Dec
Wiring solar panel 3V 100MA with JST connector
SKU: LB-LS2218 | Brand: Pi Australia
A compact 3V solar panel with a convenient JST connector for easy integration into low-power electronics projects. Rated at 100mA output in direct sunlight, it's suitable for trickle charging small batteries or poweri...
Delivered by Wed 9 Dec
Enviro Indoor (Pico W Aboard) with Accessory Kit
SKU: PR-PIM638 | Brand: Pimoroni
Monitor your indoor environment with this wireless sensor board featuring an integrated Raspberry Pi Pico W. Track temperature, humidity, pressure, gas/air quality, and light levels with built-in sensors, then transmi...
Out of stock
Pico Enviro+ Pack
SKU: PR-PIM635 | Brand: Pimoroni
The Pico Enviro+ Pack is a comprehensive environmental monitoring add-on for Raspberry Pi Pico and Pico W. Packed with sensors for temperature, humidity, pressure, gas detection, light, and sound—plus a colour LCD dis...
Out of stock
Inky pHAT (ePaper/eInk/EPD)
SKU: PR-PIM367 | Brand: Pimoroni
The Inky pHAT is a 2.13-inch e-paper display for Raspberry Pi, in yellow, black and white or plain black and white. Perfect for low-power displays that hold their image without any power, it's ideal for clocks, weathe...
Out of stock
Raspberry Pi Zero 2 W
SKU: RP-SC0510 | Brand: Raspberry Pi
Raspberry Pi Zero 2 W is a 65 × 30mm Linux computer with Wi-Fi and Bluetooth, for projects where space and power matter more than raw speed: a camera in a bird box, a sensor on a shed wall, a Bluetooth speaker or a sm...
Out of stock