SensorData.stateChange

Added state change checkup