 #define DHT_DEBUG
 
+#include "LowPower.h"
 #include <nRF24L01p.h>
 #include <DHT.h>
 #include <ws_common.h>

  delay(150);

  #ifdef DHT_DEBUG
    Serial.begin(9600);
  #endif

  DEBUG_PRINT("Hello, I'm sensor: ");
  DEBUG_PRINTLN(sensor_id);
  
  DEBUG_PRINT("Powering sensors from pin ");
  DEBUG_PRINTLN(SENSOR_POWER_PIN);
  pinMode(SENSOR_POWER_PIN, OUTPUT);

  dht.begin();

  DEBUG_PRINT("Setting up RF module ... ");
  transmitter.channel(WS_CHANNEL);
  transmitter.TXaddress(WS_TXADDR);
  transmitter.RXaddress(WS_RXADDR);
  transmitter.init();
  DEBUG_PRINTLN("done");
}

void loop() {
  
  // turn off power from sensors to save battery
  digitalWrite(SENSOR_POWER_PIN, LOW);

  // Wait a few seconds between measurements.
  delay(2000);
  digitalWrite(SENSOR_POWER_PIN, HIGH);
  delay(SENSOR_POWER_HEATUP_DELAY);

  // Reading temperature or humidity takes about 250 milliseconds!
  // Sensor readings may also be up to 2 seconds 'old' (its a very slow sensor)
  const float h = dht.readHumidity();
  const float t = dht.readTemperature();

  digitalWrite(SENSOR_POWER_PIN, LOW);

  ws_sensor_msg_t tosend = {
    sensor_id,

  DEBUG_PRINT("DHT-Hum: ");
  DEBUG_PRINT(tosend.h);
  DEBUG_PRINT(" % ");
  Serial.flush();

  // Now sending a message through RF module
  transmitter.txPL( tosend.sid );
