MPU6050 I2C address

I wrote a code to detect my MPU6050 I2C and I got 0x02. I use an Arduino Uno and I can't seem to get readings from the gyroscope. Please help.

The MPU6050 uses i2c address 0x68 or 0x69, depending on the level of AD0.

The AD0 pin isn't connected to anything. I used just the SCL, SDA, VIN and GND.

Then run the i2c_scanner script. It should show as 0x68 or 0x69.

Most MPU6050 boards bias that pin one way or the other.

This is in the I2C library?

Yes