MPU6050 3-axis accelerometer and gyro chip, providing measurements along 3 axes, as well as an inbuilt temperature sensor. Communication is handled is available via a simple I2C interface.

Gyroscopic 3D wireframe cube proto

Using a 3-axis gyro for live 3D perspective

3-axis Accelerometer-Gyro how

Measuring acceleration and orientation with an MPU6050