Made changes to Sensor class and SensorInterface to support Plugins