Arduino Due

I want to interface the arduino due with gyro sensor L3G4200D. I already program the gyro sensor with mega 2560 and it is working. But with due it shows me the velocity values even the sensor is not moving even the values are almost constant but it should give the 0 values when the sensor is not moving.

Please Help
Thanks in advance

Are you using the I2C interface? If so, do you have the gyro connected to D20 and D21?

I already program the gyro sensor with mega 2560

Which sensor do you have that needs to be programmed? How is the Mega programming it?

Please Help

Sure. It’s line # 456821645824541. Fix that, and all will be well. At least, that’s what my crystal ball says. At least, that’s what I think it says. Hard to read with the crack in it.