Programming Wireless Sensor Networks with Logical Neighborhoods: A Road Tunnel Use Case