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


  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


Please enter your comment!
Please enter your name here

67 − sixty four =

This site uses Akismet to reduce spam. Learn how your comment data is processed.