People Counter with IR Beam
People Counter with IR Beam: Build an ESP32-S3 IoT Doorway Counter with Live Web Dashboard
Every part needed, pre-tested for compatibility, with an AI build companion trained on this exact project. Shipped from Bengaluru in 3-5 days.
Create a doorway-mounted sensor system that silently counts every person passing through and instantly sends the number to a dashboard you can open on any phone or laptop. Use it to track footfall in your school lab, see how many visitors a makerspace gets during an open day, or prototype a crowd-aware lighting control—the same optical break-beam principle runs automatic doors and traffic counters across India.
What You'll Build
You’ll assemble an infrared break-beam pair on a breadboard, wire the LM393 comparator to clean the sensor signal, and program the ESP32‑S3 to host its own WiFi web server. When someone walks through the beam, the live count updates automatically on the dashboard—and also on the included 0.96‑inch OLED screen, so you can see the number locally even without a browser.
What You'll Learn
- How IR LEDs and photodiodes detect beam interruption and produce a threshold-crossing voltage
- Using an LM393 comparator to convert an analog sensor signal into a clean digital pulse
- Programming an ESP32‑S3 in Arduino IDE to run a WiFi access point and serve a web dashboard
- Designing a simple HTML/CSS interface that polls the device and displays the real-time count
Kit Contents
| Component | Quantity |
|---|---|
| ESP32-S3 Dev Board | 1 |
| IR LED 940nm | 2 |
| IR Photodiode | 2 |
| LM393 Comparator | 1 |
| 0.96in OLED | 1 |
| 220Ω Resistors | 5 |
| 10kΩ Resistors | 5 |
| 100nF Caps | 5 |
| 400-pt Breadboard | 1 |
| M-M Wires | 20 |
| Micro USB Cable | 1 |
Why Buy This Kit Instead of Sourcing Parts Separately
| Factor | Sourcing Separately | Compoden Kit |
|---|---|---|
| Compatibility checks | You verify every part | Pre-tested as a system |
| Build support | Forums and scattered tutorials | AI companion trained on this exact project |
| Time to first working build | Days of debugging | Hours, with step-by-step guidance |
| Shipping coordination | Multiple sellers, multiple delays | One shipment from Bengaluru in 3-5 days |
Who This Kit Is For
CBSE Class 11–12 students preparing a physics or computer science investigatory project, B.Tech ECE/EEE students prototyping an IoT occupancy counter for a mini-project, ATL Tinkering Lab coordinators introducing sensor-based automation, and Smart India Hackathon teams that need a ready-to-use hardware block for a live dashboard idea.
Built and Backed by Compoden
Every Compoden kit ships with an AI build companion trained on this exact project — accessible via a QR code on the box, with WhatsApp and email backup. We've spent 10 years building projects for makers, schools, and institutions across India. If a part fails because of a manufacturing defect, replace it free within 7 days.
What if I get stuck during the build?
Scan the QR code inside the box to chat with your AI build companion, trained on this exact wiring and code. You can also send a photo of your setup on WhatsApp and a real engineer will get you unstuck the same day.
Can I modify the dashboard to count people entering and exiting separately?
Yes, the ESP32 can handle two beam pairs to detect direction. The AI companion includes pointers for extending the code, and the breadboard gives you room to add a second sensor lane.
Does this kit require soldering?
No soldering is needed. All components plug directly into the included 400‑point breadboard, and you only need a computer with a USB port to upload the code.
Will this work without an existing WiFi network?
Absolutely. The ESP32‑S3 creates its own WiFi access point, so your phone or laptop connects directly to the counter dashboard—perfect for outdoor events or spaces without a router.
IR break beam at doorway counts entries. ESP32-S3 posts live count to a browser dashboard over WiFi.
What's in this kit
- ESP32-S3 Dev Board
- IR LED 940nm x2
- IR Photodiode x2
- LM393 Comparator
- 0.96in OLED
- 220Ω Resistors x5
- 10kΩ Resistors x5
- 100nF Caps x5
- 400-pt Breadboard
- M-M Wires x20
- Micro USB Cable
Other projects you can build
Shipping Information
- Prepaid Orders: ₹75 for orders up to ₹999, FREE shipping above ₹999
- COD Orders: ₹125 shipping + ₹50 COD fee = ₹175 total
- Delivery Timeline: Dispatch in 1-2 days, delivery in 2-7 days depending on location
Returns & Warranty
- 7-Day Return: Manufacturing defects only (approval required)
- Warranty: 7 days from delivery
- Non-Returnable: Batteries, consumables, cut wires, clearance items