In this project, if a human is detected in the room, the lights and fans will work normally but when no human is detected, these electric appliances will automatically switch off.

How to Automate Lights Through Human Detection?

As we now know the abstract of our project, let us move a step further and collect some more information to start working.

Step 1: Gathering the Components

The smartest way to start a project is to make a full working plan in the beginning. It is better to make a list of apparatus and buy them at first place is always the best approach. The following are the components that we will use in our project.

Step 2: Studying the Components

Now as we have a list of all the components we will use in our project, let’s go through a brief study of these components to make a better understanding of our project. Arduino Nano is a microcontroller board that has an ATmega328p microcontroller on it. This board is used to carry out various operations in a circuit. We burn a C Code on Arduino and tell it what to do. A Passive Infrared (PIR) sensor is an electronic sensor that detects the infrared rays radiating from objects in its field of operation. These sensors are most commonly used in motion detecting devices. The word passives indicate that these sensors do not emit energy to detect, they work entirely by detecting the IR rays emitted by different objects. The sensitivity of the PIR sensor can be adjusted by the potentiometer on it. You can also change the time delay of this sensor by that potentiometer. A Relay Module is a switching device. It receives a signal and switches any electronic device or appliance according to the input signal. It works in two modes, Normally Open (NO) and Normally Closed (NC). In Normally Open mode, the circuit is broken initially when the input signal to relay is LOW. In Normally Closed mode, the circuit is initially complete when the input signal is LOW.

Step 3: Assembling the Circuit

Step 4: Getting Started with Arduino

If you are not already familiar with Arduino IDE, don’t worry, we will go through a step by step procedure to setup Arduino IDE. To download the code, click Here

Step 5: Code

The code is very simple and well commented but still, it is briefly described below. 2. void setup() is a function in which pins of microcontroller board are initialized to be used as INPUT or OUTPUT. Baud rate is also set in this function using Serial.begin. Baud rate is the speed at which the microcontroller board communicates with the other components attached. 3. void loop() is a function that runs repeatedly in a cycle. In this loop, we give instructions to the Arduino Nano what operations to carry out. Here we are reading the status of the OUT pin of the PIR sensor. If it is high, it means that the human is detected, so the lights will remain switched on. If the OUT pin of the PIR sensor is low then it means that there is no human detected. This will result in switching the electronic appliances off automatically. Now as you know how to use a PIR sensor to detect a human in a room. Enjoy making your own energy-efficient lighting system to save electricity. This can cut your electricity bill by 30 percent.

Unity Wins a New Military Contract to Develop Smart Human/Machine InterfacesiPhone 14 Pro’s Crash Detection Feature Tested IRL by YouTuberHow To Ring Door Bell Automatically With Object Detection?How to Fix PUBG Error ‘Detection of an Unauthorized Device’ How To Save Electricity Using Human Detection  - 65How To Save Electricity Using Human Detection  - 33How To Save Electricity Using Human Detection  - 96How To Save Electricity Using Human Detection  - 71How To Save Electricity Using Human Detection  - 73How To Save Electricity Using Human Detection  - 38How To Save Electricity Using Human Detection  - 76How To Save Electricity Using Human Detection  - 88