9-axis sensors combine a magnetometer, accelerometer, and a gyroscope into a single sensor. Learn how they work, how to connect them to an Arduino, and how to program them.