 unsigned long time;
 #endif
 
+// Init Watchdog timer
+void initWDT() {
+  wdt_disable();
+  wdt_enable(WDTO_4S);
+}
+
 // Initialize DHT sensor
 void initDHT() {
   dht.begin();

#define DISCONN_TIME    10000  // inactive time before client disconnect, ms
#define REINIT_TIME     20000  // inactive time before reinit Ethernet, ms

//#define DEBUG

#ifdef DEBUG
 #define DEBUG_PRINT(val)       Serial.print(val)

 * (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
