[UPDATED] iPhone WiFi Presence Sensor

Maybe this program would do what you want