I would be very interested in getting your adopted code. I have not been able to get the thermal unit to work with any of the examples.