I am doing a project which involve interfacing a MPU-6050 sensor with Arduino Mega. To interfacing the sensor I have followed the below setup.
But the Arduino is not showing any reasonable data in Serial Monitor even I am changing the orientation and acceleration of MPU sensor to generate data. So, I decide to run a I2C scan (using the code mentioned below) it shows no IC device is connected. However, I have connected a LCD I2C to check if my Arduino board is capable to handle I2C device, fortunately, the LCD device being detected, but the MPU sensor is not being detected, even I have keep the same pin setup for both LCD and MPU sensor. Here I sharing the pin set up of LCD device:
NOTE: I have three MPU-6050 sensors, I have tried all the three sensors, but all the sensors have same issue. Also, I have connected the MPU-6050 sensors to ESP82366 board , but here I also face the same problem

