Subscribe now

Technology

Make a weather station with BBC micro:bits and a sensor

Get up-to-the-minute weather reports by turning an environmental sensor and two BBC micro:bits into a mini weather station

By Hannah Joshua

28 August 2019

New Scientist. Science news and long reads from expert journalists, covering developments in science, technology, health and the environment on the website and the magazine.

David Stock for New Scientist

New stuff you need
Second micro:bit and battery DHT11 environmental sensor


LAST week it was rain. This week, our mini weather station will measure temperature and humidity. And by using a second BBC micro:bit, we can get the readings before heading outside.

First, we need a DHT11 sensor, and to check whether it works using one micro:bit. To do this, we must teach the MakeCode editor new tricks. Go to “Extensions”, type in “DHT11” and click on the DHT11/DHT22 result.

Under the new menu option, select the block that is five lines tall and clip it into…

Sign up to our weekly newsletter

Receive a weekly dose of discovery in your inbox. We'll also keep you up to date with New Scientist events and special offers.

Sign up

To continue reading, subscribe today with our introductory offers

Piano Exit Overlay Banner Mobile Piano Exit Overlay Banner Desktop