Question: why gyro sensor is used?
Answer: Accelerometer and gyroscope Accelerometers in mobile phones are used to detect the orientation of the phone. The gyroscope, or gyro for short, adds an additional dimension to the information supplied by the accelerometer by tracking rotation or twist.