# Case03: PIR sensor ## Purpose --- - In this project, you will learn how to change the graph on the micro:bit through PIR sensor. ## Materials --- * 1 x micro:bit * 1 x [Basic : bit](https://www.elecfreaks.com/store) * 1 x PIR sensor ## Software Platform --- [MicroSoft makecode](https://makecode.microbit.org/#) ## Hardware connect ![](./images/case_03_01.png) ## Programming --- ### Program annotation ![](./images/case_03_02.png) ### Programming Links: [https://makecode.microbit.org/_0H22Luc6UJkX](https://makecode.microbit.org/_0H22Luc6UJkX) You can also download it directly below:
## Result --- * While detecting the body, the micro:bit changes the icon on its screen. ## Exploration --- * How to progreamme to make the basic:bit alert while the PIR sensor detecting the body? ## FAQ --- ## Relevant Files ---