It’s amazing what a good night’s sleep does. It was an authentication issue on the rest call when creating the sensor! I know the rest call was working as it worked in the browser, when I re-tested in the browser this morning and it prompted me for a user/pass I had a lightbulb moment