Hi I am new to Cayeene I need code for mpu 6050 can anyonehelp

Hi I am new to Cayeene I need code for mpu 6050 can anyonehelp

which device are you connecting the MPU6050?

Esp8266 node 12e

first connect the mpu6050 to nodecmcu and get the reading MPU6050 Interfacing with NodeMCU | NodeMCU

then you can use Cayenne-MQTT-Arduino/examples/Connections/ESP8266 at master · myDevicesIoT/Cayenne-MQTT-Arduino · GitHub to send the mpu data to cayenne. The format will be

Cayenne.virtualWrite(12, buffer, "accel", "g");

where buffer will be buffer = [ax, ay, az]