need help in mpu6050 IMU

hi,i have just bought ardupilot mega2.5 which includes arduino mega+MPU 6050 and i need first to readout gyro and acc. values
have any one a program to read from it ?


Can you elaborate the things you did so far so that i can help you from later on.

i've just bought it and every code i tried gives an error (even codes from

tell me ur connections.