Revised Sensor to use SensorEvents.