Building Virtual Sensors and Actuators over Logical Neighborhoods