Materials: corrugated board and cutter
Build as below picture：
Paste devices as below piture:
Edge Connector Data Sheet
Go to MakeCode page, click Advanced in the code block and click on Extensions.
We need to add a new codebase for programming of smart home. Finding “Add Package” in the bottom of code block and click it. Then a message box will show up, search “smart home”， and download this new codebase.
Note：If there is a hint says some codebase will be deleted because of incompatibility. Don’t worry. You could go ahead as the hint or build a new item in item menu bar.
Drag on start on from Basic, snap into servo write pin, set P1 to 0.
Snap set item to into forever, assignment value of noise to noise variables.
If value of noise > 70dB, snap into servo write pin,set P1 to 0 and the window be closed.
If value of noise < 70dB，snap into servo write pin,set P1 to 100 and the window be opened.
You also could directly download program visit website as below:
micro:bit driving servo open the window when value of noise > 70dB.
How to know wether open the window on room temperature.
DownLoad Url osoyoo.com