Interfacing MPU-6050 sensor with Arduino Mega

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

Did you solder the header pins to the MPU-6050 board?
If not, operation will be problematic

Most breakout boards for the MPU-6050 do include 4.7kΩ or 10kΩ pull-up resistors on the I2C lines, but some might not have internal pull-ups. You should check the specific module datasheet or board schematic to be sure.

Have a nice day!