To work with the MPU 6050, I need to set the sample rate in the Arduino board.
No, you don't.
The MPU6050 communicates using the I2C bus, not the analog to digital converter.
Delete that code and start over with something intended for the MPU6050, for example this tutorial.