#MonthOfMaking Day 10

March is all about MAKING!!

I have decided to take on the challenge of making a 5-minute micro:bit make every day throughout March.

Day10 – Temperature Sensing

Today I am going to use the built-in temperature sensor on the micro:bit to get the current temperature of the room I am in. Let’s get coding!

Python Code

from microbit import *
while True:
    if accelerometer.is_gesture('shake'):
        temp = temperature()
        display.scroll(temp)

EduBlocks Code

EduBlocks code

MakeCode Code

MakeCode code

Demo

Final Words

Come back Tomorrow for another fun 5-minute micro:bit make

Series Navigation<< #MonthOfMaking Day 9#MonthOfMaking Day 11 >>

Leave a Reply