Arduino Mega 2560 + GY-521 MPU6050

 

To connect the gyroscope to arduino use the following pins

Sensor Arduino
VCC 5V
GND GND
SCL SCL
SDA SDA

Sketch to get the angels by axis X, Y, Z with GY-521 MPU 6050 you can find here

Troubleshooting

If you don't get any output - check the pins on the GY-521