  * (c) 2016, Mikhail Shiryaev
  */
 
+#include <avr/wdt.h>           // Watchdog timer support
 #include <DHT.h>               // https://github.com/adafruit/DHT-sensor-library
 #include <OneWire.h>           // http://www.pjrc.com/teensy/td_libs_OneWire.html
 #include <DallasTemperature.h> // https://github.com/milesburton/Arduino-Temperature-Control-Library

unsigned long time;
#endif

// Initialize DHT sensor
void initDHT() {
  dht.begin();

    }
  }
  
#ifdef USE_WATCHDOG
  // reset Watchdog timer if client is active
  if (inactiveSpan <= REINIT_TIME) {
    wdt_reset();
  }
#else
  // reinit Ethernet if client can't connect
  if (inactiveSpan > REINIT_TIME) {
    initEthernet();
  }
#endif
  
  DEBUG_WRITETIME();
  DEBUG_PRINTLN();
}

void setup() {
#ifdef USE_WATCHDOG
  initWDT();
#endif

  Serial.begin(9600);
  Serial.println("NET TH meter started");
  initDHT();
