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 ?

Hi,

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 http://playground.arduino.cc/Main/MPU-6050#measurements)

tell me ur connections.