Using the MPU-6050 Inertia Measurement Systems Gyroscopes & Accelerometers Sensor fusion I2C MPU-6050 Code.