Every phone, laptop and other internet device has its own unique MAC address. This device scans his surroundings for those MAC addresses and speaks it out loud. Your phone is continuously sending out WiFi signals until your phone recognizes a network that it can connect to. This signal also contains your MAC address. Municipalities in the Netherlands use the same technique to gather this information to map the flow of people in the streets.