+#include <LowPower.h>
 #include <DHT.h>
-#include <avr/sleep.h>
-#include <avr/power.h>
-#include <avr/wdt.h>
+
 
 #define DHTPIN 2
 #define DHTTYPE DHT11

  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))
  {
    
    Serial.println("UP!");

    }
    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)
