verification of whether the gyro/accelerometer is enabled added