mpu6050 not detected through i2c

You will have to check if pullup resistors are present, either on the MPU-6050 board or on the D1. I2C won't work without them.