 int relayOn =               0;
 int computerOn =            0;
 int relayOffWhenPowerDown = 0;
+char temp[8] =             "";
 
 void setup() {
   Serial.begin(115200);
   initWifi();
+  dht.begin();
 
   server.on("/", getStatus);
   server.on("/on", powerOn);

      }
    }
    lastPowerCheck = millis();
  }
  // Check status to update variables
  computerOn = digitalRead(POWER_LED);

#define RELAY_PIN D1
#define POWER_BUTTON D4
#define POWER_LED D2
#define DHT_PIN D5

#define DHTTYPE DHT22        // DHT 22
DHT dht(DHT_PIN, DHTTYPE);

// The port to listen for incoming TCP connections
ESP8266WebServer server(80);

// How often to report temperature
unsigned long lastTempCheck = millis();
#define TEMP_CHECK_FREQUENCY 10000

// How often to check for power off state
unsigned long lastPowerCheck = millis();
