İn this project I use ESP32 and MPU6050 Gyro Accelerometer. ESP32 acts as a webserver . At the same time it is connected to MPU6050 via İ2c communication. ESP32 reads data from MPU6050 at every 1 sec with timer interrupt.İf reading data is unsuccessful , it tries to read MPU6050 5 times.İf reading is unsuccessful on all 5 times trial it initializes i2c comm and MPU6050 device.
Thank you for watching
![](https://i.ytimg.com/vi/f4JmWcNnqM0/maxresdefault.jpg)