// Relay.ino
//
// 6 Febrary 2022, Version 1, by Koepel, Public Domain
//
// Using a relay to turn on one of two leds.
//
//Thermostat controls
#include "DHT.h"
#define DHTPIN 8 //Thermostat dedicated port
#define DHTTYPE DHT22 // DHT 22 (AM2302), AM2321
DHT dht(DHTPIN, DHTTYPE);
const int relayPin = 13;
void setup() {
Serial.begin(115200);
Serial.println(F("DHT22 example!"));
pinMode( relayPin, OUTPUT);
dht.begin();
}
void loop()
{
digitalWrite( relayPin, HIGH);
delay( 600);
digitalWrite( relayPin, LOW);
delay( 600);
}