Skip to content

SensorsIot/Wi-Fi-Sniffer-as-a-Human-detector

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

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •