     }
   }
 
-  if (!clientConnected) {
-    // reinit Ethernet if client can't connect
-    if (inactiveSpan > REINIT_TIME) {
-      initEthernet();
-    }
-    
+  if (!clientConnected) {    
     // connection is considered to be established only when data are received
     client = server.available();
     if (client) {

unsigned long time;
#endif

// 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 USE_WATCHDOG           // use Watchdog timer. If true, burn MCU without the bootloader
//#define DEBUG                // write detailed log to Serial port

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