Telling whether someone is in a room using only the WiFi signal. No cameras.
Rust · Axum
WebSocket
Swift · CoreWLAN
Three.js
ESP32 (next step)
localhost:3000 · WiFi Sensing
The idea
When a person moves, or just breathes, the radio waves in a room change in a measurable way. I wanted to see how far ordinary hardware gets you, my Mac and my home router, before buying dedicated sensors.
What it builds on
An open source WiFi sensing framework written in Rust. The core code is not mine: I compiled it on the Mac, wrote the launcher that starts server and dashboard with a double click, and tested it at home.
How it works
A small Swift helper reads the signal strength (RSSI) with CoreWLAN every 500 ms, for up to 32 networks. The Rust server (Axum) computes variance, spectral power and the frequency bands typical of motion and breathing, then a classifier decides the state. The result reaches a 3D dashboard in the browser over WebSocket.
Privacy
Everything runs locally on the Mac (127.0.0.1): no cloud, no images of people. On macOS the names of nearby networks are not even shown.
Results and limits
With the Mac alone it detects presence and motion roughly: in the screenshot, “present, still” at 44% confidence. Signal strength alone is not enough to measure breathing or estimate pose. The “ESP32” label in the dashboard is the default one: this data comes from the Mac’s WiFi.
Next step
Adding ESP32 boards that send CSI (Channel State Information) to the server: the detail of how the signal changes on each subcarrier. It is what finer measurements and more rooms need.
System status: server, data source, inference and streaming.