How do I link my MPU6050 to cayenne?

I tried editing the code I found here at this Cayenne Community link to use with the board I’m using including revising code to MQTT format.