Wi-Fi Proximity Detector
This page is a Wi-Fi-based proximity detection system that continuously monitors the Wi-Fi signal strength of a connected device, such as a mobile phone hotspot. It takes multiple signal readings, calculates their average, and compares the result with a predefined threshold to determine whether the device is NEAR or AWAY.
The system is designed to avoid unnecessary notifications. Instead of sending a notification every time it takes a reading, it remembers the previous state and sends a Windows notification only when the state changes.
For example:
📱 AWAY → NEAR: Sends a notification that the person is nearby.
🚶 NEAR → AWAY: Sends a notification that the person moved away.
📱 NEAR → NEAR: No notification.
🚶 AWAY → AWAY: No notification.
The system uses 20 Wi-Fi readings for each measurement cycle and calculates their average to make the detection more stable. A configurable signal threshold is used to decide the current state. The current implementation uses a threshold of 78%, which should be calibrated according to the specific laptop, phone, and environment.
Overall, the page demonstrates how Python, Wi-Fi signal monitoring, repeated measurements, state-change detection, and Windows notifications can be combined to create a simple proximity-alert system.
Main Code 👇🏻
https://www.mediafire.com/file/sh6m9r21bbaxfpi/main1.py/file
Installation File👇🏻
https://www.mediafire.com/file/kti2e4fzs0u59ed/Installation.bat/file
Demo Video👇🏻
https://www.mediafire.com/file/h7shzggod75xsrw/Demo_Wifi.mp4/file