Have you ever noticed that when you entered 7E there is a ding dong sound? Or when you enter a toilet, then suddenly the lamp turned on by itself? It’s actually using a Passive Infra-red (PIR) Motion Sensor. A sensor where it detects any heat that occurred to trigger the sensor. Let’s scroll down to get more info.
This tutorial use :
You can make the hardware connection based on the diagram and table below.
|PIR Sensor : VCC||Maker UNO: 5V|
|PIR Sensor : GND||Maker UNO: GND|
|PIR Sensor : Out||Maker UNO: pin 5|
This is the sample code used for this tutorial. Try it!
Thank you for reading this tutorial and we hope it helps your project development. If you have any technical inquiry, please post at Cytron Technical Forum.