This article talks about applications in retail, but the possibilities are endless. Every smartphone these days comes equipped with a WiFi card. When the card is on and looking for networks to join, it's detectable by local routers.
In your home, the router connects to your device, and then voila

The link for this article located at Schneier on Security is no longer available.