Not sure that this is the right place to ask. I use platformio 4.3.4 with the arduino framework. In various sketches that I looked at, it is implied that loop() is called within an endless loop so ...
The MPU6050 module has a total of 8 pins, of which at least 4 pins are necessary for the interfacing. VCC provides power for the module. Connect to the 5V pin of the Arduino. GND Ground is connected ...