Detect human presence by sniffing Wi-Fi probe requests from smartphones and other devices.
β οΈ Note: ESP8266 only supports 2.4GHz Wi-Fi. 5GHz networks are not supported.
πΊ Video Tutorial: https://www.youtube.com/watch?v=fmhjtzmLrg8
Install using the Library Manager in Arduino IDE:
| Library | Description |
|---|---|
| ESP8266 | ESP8266 board support |
| ArduinoJson | JSON serialization |
| PubSubClient | MQTT client |
Before uploading, update these settings:
In mqtt.h, set your broker IP:
mqttServer = "192.168.0.100"; // Your MQTT broker IPIn WiFi_Sniffer.ino (line 186), update the MQTT credentials:
client.connect("ESP32Client", "your-username", "your-password")mySSID = "your-wifi-name";
MyPassword = "your-wifi-password";The default baud rate is 115200. Make sure your Serial Monitor matches this setting.
π‘ Tip: If you're using older hardware that requires a different baud rate, change
Serial.begin(115200);in the sketch to your preferred speed (e.g.,9600).
| Topic | Description |
|---|---|
Sniffer/# |
All sniffer data is published under this topic |
A sample Node-RED flow is included in Node-red Flow.txt.
To import:
- Open Node-RED
- Menu β Import β Clipboard
- Paste the contents of the flow file