Bukit Mertajam, Penang

Automatic Doorbell with PIR Motion Sensor


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.

Hardware Preparation

This tutorial use :

  1. Maker UNO
  2. Low Cost PIR Sensor Module (Sound Sensor)
  3. Micro B USB

You can make the hardware connection based on the diagram and table below.

PIR Sensor : VCCMaker UNO: 5V
PIR Sensor : GNDMaker UNO: GND
PIR Sensor : OutMaker UNO: pin 5
Figure 1 : Hardware Connection.
Figure 2 : The PIR Motion Sensor
Figure 3 : The PIR Specification.

Sample Code

This is the sample code used for this tutorial. Try it!

Thank you

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.

Leave a comment