>>7314mpu6050 is trash, I would use a bmi088 or lsm6dso, Adafruit sells a lsm6dso breakout, also honestly I would rather just log straight to a flash chip and then have serial prompt that allows you to read out the data to CSV in serial format. I did that for my datalogging instead of messing with a sd file system.