SensorData update

Sensordata added to switch-case