Any mobile device contains a(n) accelerometer and gyroscope that can sense even the smallest movements.
The orientation of a mobile phone is determined by the accelerometer in the device. The gyroscope, or gyro for short, tracks rotation or twist to provide another dimension to the data provided by the accelerometer.
A smartphone's built-in accelerometer measures the device's acceleration. It tracks the different motions like shaking, tilting, swinging, and rotating and accordingly changes the orientation of your app. The accelerometer utilizes the value of XYZ to determine and detect motion.
To know more about accelerometer , Visit:
https://brainly.com/question/27960990
#SPJ4