Motion sensor


Here’s a simple motion sensor. Sketch has been taken from Arduino site. The sensor’s output pin goes to HIGH if motion is present.  However, even if motion is present it goes to LOW from time to time, which might give the impression no motion is present. This program deals with this issue by ignoring LOW-phases shorter than a given time, assuming continuous motion is present during these phases.

motion sensor2 (2)


You can buy PIR motion sensor module from

motion sensor (2)

try this also

Arduino sketch:

try this also

EasyEDA: Ideas for Circuit Design, Innovation for Electronics Access

Free Circuit Design: Schematic - Simulation - PCB Layout - Gerber Viewer

JLCPCB Prototype & Small-batch PCB: Only $2 for 10pcs 10×10cm PCBs, 24 hours Quick Turn, DHL Delivery in 3 Days


  1. Halo Sagar Sapkota. i have a concern and i really hope to be helped. i would wish to do my final yr project about a motion sensing system used in counting objects and it should be arduino based. i would like you to help me with a code for this project please. the results be displayed on a LCD. please help