#include <Adafruit_MPU6050.h>
#include <Adafruit_Sensor.h>
#include <Wire.h>

Adafruit_MPU6050 mpu;

void setup(void) 
{
  Serial.begin(9600);
  mpu.begin();
  
}
void loop() 
{
sensors_event_t event;
mpu.getGyroSensor()->getEvent(&event);
double gx = event.gyro.x;
double gy = event.gyro.y;
double gz = event.gyro.z;
  Serial.print(" aX: ");
  Serial.print(gx/4.3632677*250);
  Serial.print(", aY: ");
  Serial.print(gy/4.3632677*250);
  Serial.print(", aZ: ");
  Serial.print(gz/4.3632677*250);
  Serial.println(" degree");
  delay(500);
}