Interesting thread, and quite by chance similar to a project I was contemplating.

I was thinking of making my own pulse proportional thermostat for use with reptile enclosures. Your code could be the ideal starting point for me, thanks for sharing