Using Arduino with cayenne.Need a code

Is this what you are looking for?