People counter and monitor for rooms

Building people counter :
Arduino Mega
The Arduino MEGA 2560 is designed for projects that require more I/O lines, more sketch memory and more RAM. With 54 digital I/O pins, 16 analog inputs and a larger space for your sketch it is the recommended board for 3D printers and robotics projects.
IR sensor
An infrared (IR) sensor is an electronic device that measures and detects infrared radiation in its surrounding environment. IR is invisible to the human eye, as its wavelength is longer than that of visible light (though it is still on the same electromagnetic spectrum). Anything that emits heat (everything that has a temperature above around five degrees Kelvin) gives off infrared radiation.
Connected Loads
To drive the electrical appliances that connected to the device via relay can be controlled by the designed device and display the count in the LCD display.

Working :
The main controller of this system is Arduino mega which has more number of pins when compared to other boards. Next is IR module, the IR module act as an object detection. The input from IR sensor module is given to the Arduino mega controller to process the inputs. There are two IR sensors named Sensor 1 and sensor 2. The condition that used in the system is when sensor 1 is high then sensor 2 is high at that time the system understands that a person is coming towards on the other hand when sensor 2 is high then sensor 1 is high then system understands a person is outwards form the system. And finally the respective counting will be displayed on the display on the system. If the count is zero all the connected electrical appliances will be OFF. When the count is greater than 1 then the appliances which are connected will be ON based on the condition.
Advantages:
- Low cost and simple system
- Reliable
- Maintenance free