MPU6050 y stuck at max

I'm using an arduino to read the accelerator values from the MPU6050. 2 sensors are connected. One gives me correct values (1g when at rest). The other one seems to give me correct x and z values (they roughly equal the values from the other sensor) but the y axis seems to be stuck at -2 g. Could the sensor be broken? Can I fic this somehow? This is the code I use. I know, it comes from another post, but I just need it privately, so I copied it. Any ideas?

FilmingHelper_NX.ino (1.72 KB)

If you turn both sensors in all directions, and that value is stuck, then it might be broken. You need another sensor.

Ok, thank you