Reading data from a nodemcu+mpu6050 and analise it

have a look at this topic Using Node-RED as a Local Fallback Server then modify it to collect data and analise.