Skip to content
Voltomni
← 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 kit

Parts only: available parts total

₹1,703

5 of 5 line items available now.

Electronics

PartRoleQtyUnitLineStatus
Arduino Nano compatible (CH340)BoardController (Arduino Nano compatible)1₹252₹252ships in about 6 business days
IR Proximity sensorIR sensors at the door2₹179₹358ships in about 6 business days
16x2 LCD1602 Parallel LCD Display With IIC I2C InterfaceBlue · External IIC16 × 2 LCD with I2C (count display)1₹197₹197ships in about 6 business days
SmartElex 5V 3A 2 Channel Signal Relay ModuleRelay for the light1₹181₹181ships in about 6 business days
Electronics fun kit with 830 breadboardKit830-point breadboard, jumper wires, LEDs, resistors, buttons and buzzer1₹715₹715ships in about 6 business days

How to build it

  1. Fix the two IR sensors side by side in a model doorway, about 5 cm apart, facing across it.
  2. Wire them to D2 and D3, the relay's input to D7, and the LCD to A4 and A5.
  3. Upload the sketch: sensor A then B means someone came in (count up); B then A means someone left (count down).
  4. Show 'Visitors: n' on the LCD, and switch the relay on while the count is above zero.
  5. 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.

Prices are final and follow what Indian distributors have in stock (refreshed nightly). Out-of-stock parts are not added to the cart.