I used 5 V from my Arduino to power the MPU6050, and it was fine. Check out: https://www.instructables.com/How-to-Make-a-Robot-Car-Drive-Straight-and-Turn-Ex/, which has very similar code.

Also, I typically avoid pin 13, since it performs some special additional function, unlike pin 2 to 12.