← All project kits
Bidirectional visitor counter with automatic room light
BeginnerBuild time 2 hours· You'll learn: Arduino, IR sensors, Relays, I2C LCD
An energy-saving project schools and colleges love. Two IR sensors a few centimetres apart in the doorway tell the Arduino which way each person walks: in adds one, out takes one away. The LCD shows how many are inside, and a relay switches the room light on while anyone is there and off when the count reaches zero.
Complete kit
₹1,939
Every part below as one item: we collect, check and ship the whole set together, with one GST invoice. Ships in about 6 business days.
View complete kitParts only: available parts total
₹1,703
5 of 5 line items available now.
Electronics
| Part | Role | Qty | Unit | Line | Status |
|---|---|---|---|---|---|
| Arduino Nano compatible (CH340)Board | Controller (Arduino Nano compatible) | 1 | ₹252 | ₹252 | ships in about 6 business days |
| IR Proximity sensor | IR sensors at the door | 2 | ₹179 | ₹358 | ships in about 6 business days |
| 16x2 LCD1602 Parallel LCD Display With IIC I2C InterfaceBlue · External IIC | 16 × 2 LCD with I2C (count display) | 1 | ₹197 | ₹197 | ships in about 6 business days |
| SmartElex 5V 3A 2 Channel Signal Relay Module | Relay for the light | 1 | ₹181 | ₹181 | ships in about 6 business days |
| Electronics fun kit with 830 breadboardKit | 830-point breadboard, jumper wires, LEDs, resistors, buttons and buzzer | 1 | ₹715 | ₹715 | ships in about 6 business days |
How to build it
- Fix the two IR sensors side by side in a model doorway, about 5 cm apart, facing across it.
- Wire them to D2 and D3, the relay's input to D7, and the LCD to A4 and A5.
- Upload the sketch: sensor A then B means someone came in (count up); B then A means someone left (count down).
- Show 'Visitors: n' on the LCD, and switch the relay on while the count is above zero.
- Test with a 5 V LED or a low-voltage lamp on the relay first.
Questions
- Why does it miscount when two people pass together?
- Two IR sensors can't separate people walking side by side. A narrow doorway, or the order check with a short timeout, keeps it accurate for one at a time.
- Can the relay switch a real room light?
- The relay is rated for mains, but mains wiring must be in a closed box and done by an electrician. Demonstrate with a low-voltage lamp.
- Needs a USB Mini-B cable and a 5 V USB charger, not included.
Prices are final and follow what Indian distributors have in stock (refreshed nightly). Out-of-stock parts are not added to the cart.