     if (dsSensors[i].getAddress(deviceAddress, 0)) 
       dsSensors[i].setResolution(deviceAddress, 12);
   }
-  Serial.println("DS sensors initialized");
+  DEBUG_PRINTLN("DS sensors initialized");
 }
 
 // Initialize ENC28J60 Ethernet controller

#define ONE_WIRE_PIN1 6 // the 2nd DS18B20 data
#define ONE_WIRE_PIN2 7 // the 3rd DS18B20 data

#define DHT_TYPE      DHT22 // DHT 22
#define ONE_WIRE_CNT  3     // count of 1-wire connections
#define TCP_PORT      502   // Modbus TCP default port
#define RESPONSE_LEN  29    // length of Modbus TCP response

// DHT instance
DHT dht(DHT_PIN, DHT_TYPE);

// 1-wire and DS instances
OneWire oneWire0(ONE_WIRE_PIN0);

    client = server.available();
    if (client) {
      clientConnected = true;
      DEBUG_PRINTLN("New client is connected");
    } else {
      DEBUG_PRINTLN("Client is not connected");
    }
  }

  // communicating
  if (clientConnected) {
    // wait for the request 00 00 00 00 00 06 01 03 00 00 00 0A
    DEBUG_PRINT("Receiving data: ");
    boolean sendResponse = false;
    while (client.available() > 0) {
      char c = client.read();
      DEBUG_PRINTHEX(c);
      DEBUG_PRINT(" ");
  
      if (c == 0x0A) {
        sendResponse = true;
        client.flush(); // clear input buffer
        break;
      }
    }
