 #include <SPI.h>
 #include "nRF24L01.h"
 #include "RF24.h"
+#include "DHT.h"
 //#include "printf.h"
 
+#define DHTPIN 2 
+#define DHTTYPE DHT11 
+
 RF24 radio(9,10);
+DHT dht(DHTPIN, DHTTYPE);
 
 const uint64_t pipes[2] = { 0xF0F0F0F001LL, 0xF0F0F0F002LL };
 const byte shortAddr = 0x02;

void setup(void)
{
  Serial.begin(57600);

  radio.begin();
  radio.setAutoAck(false);
  radio.setRetries(15,15);
  radio.setPALevel(RF24_PA_MAX);

      if (pipenum==1){
          runCommand(ptr);
      }
      Serial.println(ptr[13]);
      
      radio.stopListening();
      radio.write(ptr, sizeof(byte[32]));
