ESP32-based device that estimates crowd size from Wi-Fi and Bluetooth signals, reads environmental sensors, and sends data via LoRaWAN, MQTT, SD card, or serial.
Overview
ESP32-Paxcounter is firmware for inexpensive ESP32 LoRa boards that meters passenger flows and collects multi-sensor readings in near real time. It listens for Wi-Fi and Bluetooth transmissions and estimates how many people are nearby from mobile device activity, without storing MAC addresses or fingerprinting scanned hardware.
Environmental sensor data can be read and stored alongside counts. Output options include a local SD card, cloud upload through LoRaWAN networks such as The Things Network or Helium, MQTT over TCP/IP, or transfer to a local host over a serial SPI interface.
The design targets battery operation using ESP32 deep sleep so a single 18650 Li-Ion cell can support long runtimes. Ready-made hardware such as LILYGO Paxcounter LoRa boards is referenced for builders who want a prebuilt option.
The project positions counting as a privacy-conscious alternative to tracking individual devices: estimation from transient radio presence rather than persistent identification of handsets.
Key features
- Wi-Fi and Bluetooth counting
- LoRaWAN cloud upload
- MQTT over TCP/IP
- SD card logging
- Serial SPI to local host
- Multi-sensor data
- Battery deep sleep
- No stored MAC addresses
Use cases
- Venue foot traffic estimates
- Outdoor LoRa sensor nodes
- Privacy-minded people counting
- Environmental monitoring with counts
- Battery-powered IoT deployments