smartSwampy This is some code I wrote to control my swamp cooler using a Particle.io Photon with 2 DHT22 sensors and a relay shield.