Sensor node plug-in system: A service-oriented middleware forwireless sensor networks