麻豆传媒

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

麻豆传媒. 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 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 鈥淓xtensions鈥, type in 鈥淒HT11鈥 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 麻豆传媒 events and special offers.

Sign up

To continue reading, today with our introductory offers

or

Existing subscribers

Sign in to your account
Piano Exit Overlay Banner Mobile Piano Exit Overlay Banner Desktop