MPU-6050 and nodeMCU

Hello everyone,
I am trying to use MPU-6050 and nodemcu to get angles values and send them with mqtt.
I tried almost every library found to achieve that.
MPU6050.h, MPU-6050_tiny, MPU6050 for ESP8266, MPU6050_tockn.h but even all of them works fine on arduino module they don't work properly on nodeMCU.
Even I am able to upload the program, stucked values were printed on serial monitor.
Is there anyone else who face the same problem?
thanks in advance.

You may have to write your own code to get your readings, here is a very good example template you can use

finally I get to the point.
I used MPU6050_tockn.h library. I changed in the library the number of samples for offset calculation, because it creates soft restart to nodeMCU. Maybe yield() command solves problem either.