Code to maintain the air in my campervan. Opens the MaxxAir fan (via IR) when the CO2 level gets too high. Also a thermostat with adjustable hysteresis (in code) that can control the diesel furnace in my van. Read the full details here
Sorry there's no wiring diagram. Just put the right resistor(s) for your IR LED in place, wire up the buttons to the gpio and the rest is I2C and a relay to connect/disconnect the furance line.
https://www.sparkfun.com/products/18772 https://www.sparkfun.com/products/10266 https://www.sparkfun.com/products/17994 2x https://www.sparkfun.com/products/15123 https://www.sparkfun.com/products/10158 https://www.sparkfun.com/products/22395
https://www.amazon.com/dp/B01J1KM3RM https://www.amazon.com/dp/B08HQ1VSVL https://www.amazon.com/dp/B079FJSYGY https://www.amazon.com/dp/B00XW2L6SS https://www.amazon.com/dp/B09G3LSNFM https://www.amazon.com/dp/B00KLDQ0YG
I've included STL files for the enclosure. The pegs for the Sparkfun board I just melted down with a soldering iron to hold the board in place. (Works pretty well).