   dht.begin();
   pinMode(DHTALIM, OUTPUT);
   pinMode(TRANSCEIVERALIM, OUTPUT);
-  
-  /* Clear the reset flag. */
-  MCUSR &= ~(1<<WDRF);
-  
-  /* In order to change WDE or the prescaler, we need to
-   * set WDCE (This will allow updates for 4 clock cycles).
-   */
-  WDTCSR |= (1<<WDCE) | (1<<WDE);
-
-  /* set new watchdog timeout prescaler value */
-  WDTCSR = 1<<WDP0 | 1<<WDP3; /* 8.0 seconds */
-  
-  /* Enable the WD interrupt (note no reset). */
-  WDTCSR |= _BV(WDIE);
 }
 
 void loop() {
-  if((f_wdt == 1) && (sleep_count >= 0))
+  if (sleep_index >= 0)
   {
     
     Serial.println("UP!");


DHT dht(DHTPIN, DHTTYPE);

int f_wdt=1;
int sleep_count=0;
int ack=0;

void setup() {

    }
    digitalWrite(TRANSCEIVERALIM, LOW);

    sleep_index = 0;
    
    /* Re-enter sleep mode. */
    Serial.println("go back to sleep");
    delay(50);
    LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF); 
  }
  else
  {
    sleep_index++;
    LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);
  }
}

int sendData(int temp, int hum)
