Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Wi-Fi Sniffer as a Human Detector

MIT License GitHub stars YouTube

ESP8266 Arduino MQTT 2.4GHz

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

📦 Dependencies

Install using the Library Manager in Arduino IDE:

Library Description
ESP8266 ESP8266 board support
ArduinoJson JSON serialization
PubSubClient MQTT client

⚙️ Configuration

Before uploading, update these settings:

📡 MQTT Settings

In mqtt.h, set your broker IP:

mqttServer = "192.168.0.100";  // Your MQTT broker IP

In WiFi_Sniffer.ino (line 186), update the MQTT credentials:

client.connect("ESP32Client", "your-username", "your-password")

📶 WiFi Settings (WiFi_Sniffer.ino)

mySSID = "your-wifi-name";
MyPassword = "your-wifi-password";

🔌 Serial Monitor

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).

📬 MQTT Topics

Topic Description
Sniffer/# All sniffer data is published under this topic

🔴 Node-RED Integration

A sample Node-RED flow is included in Node-red Flow.txt.

To import:

  1. Open Node-RED
  2. Menu → Import → Clipboard
  3. Paste the contents of the flow file

About

Code for Youtube video #163

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages