I used 5V5 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, which has very similar code.
Also, I typically avoid pin 13, since it performperforms some special additional function, unlike pin 2 to 12.