Definition updated as per the new SensorManager class