What is an orientation sensor?

Computes the device's orientation based on the rotation matrix. This type of sensor is often used in games to react on how the player holds the phone.