#include <Adafruit_MPU6050.h>
#include <Adafruit_Sensor.h>
#include <Wire.h>
Adafruit_MPU6050 mpu;
void setup() {
Serial.begin(115200);
while (!mpu.begin())
Serial.println("MPU6050 not connected!");
delay(1000);
Serial.println("MPU6050 ready!");
}
sensors_event_t event;
void loop() {
// put your main code here, to run repeatedly:
}