I’ve got it all working now, it’s a bit messy but at least it works. I’m on to my next challenge and thought I’d ask here first before I start from scratch. I’d like to enhance this now so that you have an option to run the fan for a set amount of time. I’m thinking either a fixed button choice for time (say 30, 60, 90min) or a slider that jumps by 30min steps (I want this to be easy to use with a touch screen).
So the fan operation works the same but if you select a time the fan will run for that set time and then turn off.