Motion Sensor Light Switch(automatic Light Switch)

It detects your presence & turns the light on and off.

Similar projects worth following

I made a arduino based project which can switch on the light when someone passes by the door to enter the uses a ultrasonic sensor(distance sensor) to identify when someone cuts the wave and enters the room,then the servo switchs then button.This can be modified to turn of the light also,but for that you'll need two ultrasonic sensors to count the people entered the room and how many of them left the room so that it can operate accordingly.

Adobe Portable Document Format - 330.03 kB - 06/28/2019 at 20:05


msword - 491.00 bytes - 06/28/2019 at 20:05


  • 1 × arduino uno
  • 1 × servo motor
  • 1 × HC-sr04 ultrasonic sensor
  • 1 × 9v battery

  • 1
    Connect the Servo Motor
  • 2
    ​ Connect the Ultrasonic Sensor
  • 3
    Upload the Code

    the code file is attached here,

    copy the code from the document paste it in arduino IDE an upload it :)

View all 6 instructions

Enjoy this project?



Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates