Hi @johnboyst and welcome to the Cayenne Community.
I know user @tad.dvor has done this and made a how-to thread about it some months ago:
Basically you’d connect it ‘as’ an Arduino board in the Cayenne UI, but with a sketch like the one in his post. If you get stuck anywhere let us know and we’ll help troubleshoot.