Trouble reading data from MPU-6050

Hey, I've been trying to hook up my sensor the arduino. Right now, my goal is to just read the data from the accelerometer and gyro.

When I use the code from this site Arduino Playground - MPU-6050, I try to verify it and I get this error.

My Pinout is:
6050 Arduino
VDD -----3.3V
GND -----GND
SCL ------A5
SDA ------A4
VIO ------3.3V

and the I2Cbus scanner found the device at 0x68.

Thanks for the help!

When you make a few different sketches, load and save them as seperate sketches.
The files in the 'tabs' belong to the same project.
Where did you find that LDByteReadI2C ? did you randomly pick code from the internet ?

You seem to have multiple instances of setup( ) and loop( ). That is not going to work.

Peter_n:
When you make a few different sketches, load and save them as seperate sketches.
The files in the 'tabs' belong to the same project.
Where did you find that LDByteReadI2C ? did you randomly pick code from the internet ?

Wow, did not know that. Ok, I put the code in a new window which worked and I loaded it onto the arduino. Then it kept sending this same thing to the serial monitor over and over again with the same numbers while I was moving and rotating the sensor.

MPU-6050
Read accel, temp and gyro, error = 0
accel x,y,z: 0, 0, 0
temperature: 36.506 degrees Celsius
gyro x,y,z : 0, 0, 0,

The LDByteReadI2C is what was used on the site I linked in the first post.

Do you use a board like the Due or the Yun ?
Is that temperature okay ? 36 degrees is pretty hot.
Can you copy the code from that sketch again, perhaps you have changed something.