Check the stop bit flag while calling i2c_read_nack function
Reset the power of MPU6050 while booting up
Remove the code of generate stop signal after read_nack
Create the delay(ms) function