Need Help about NRF24L01!

Hello everybody!
I use 2 NRF24L01 transfer and receiver DHT11 value and i got this error please help me! sory about my English...

This is my Code:

[b]Transfer:[/b]

#include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#include "DHT.h"
const int DHTPIN = 2; 
const int DHTTYPE = DHT11;
DHT dht(DHTPIN, DHTTYPE);
RF24 radio(9,53); 
const uint64_t pipe = 0xE8E8F0F0E1LL; 

void setup(){
  Serial.begin(9600);
  dht.begin(); 
  radio.begin();
  radio.openWritingPipe(pipe);}
void loop(){
 int t = dht.readHumidity();    
  int k = dht.readTemperature(); 
int sensor[2]={t,k};
radio.write( sensor, sizeof(sensor) ); 
}

[b]o Receiver[/b]
 
#include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
int sensor[2];
RF24 radio(9,53);
const uint64_t pipe = 0xE8E8F0F0E1LL;

void setup(){
  Serial.begin(9600);
  delay(1000);
  radio.begin();
  radio.openReadingPipe(1,pipe);
  radio.startListening();
  

void loop(){
  if (radio.available()){
    bool done = false;   
while(!done){
       done = radio.read( sensor, sizeof(sensor) );
      Serial.println(sensor[1]);
      Serial.print("Huminity:  ");
      Serial.println(sensor[0]);
            Serial.print("Temp:  ");
      delay(1000);
}}}

and my Error:

Arduino: 1.5.8 (Windows 7), Board: "Arduino Due (Programming Port)"

C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp:38:9: error: prototype for 'uint8_t RF24::read_register(uint64_t, uint8_t*, uint8_t)' does not match any in class 'RF24'
 uint8_t RF24::read_register(uint64_t reg, uint8_t* buf, uint8_t len)
         ^
In file included from C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp:11:0:
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.h:104:11: error: candidates are: uint8_t RF24::read_register(uint8_t)
   uint8_t read_register(uint8_t reg);
           ^
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.h:96:11: error:                 uint8_t RF24::read_register(uint8_t, uint8_t*, uint8_t)
   uint8_t read_register(uint8_t reg, uint8_t* buf, uint8_t len);
           ^
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp: In member function 'void RF24::print_status(uint8_t)':
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp:188:31: error: '_BV' was not declared in this scope
            (status & _BV(RX_DR))?1:0,
                               ^
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp:193:11: error: 'printf_P' was not declared in this scope
           );
           ^
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp: In member function 'void RF24::print_observe_tx(uint8_t)':
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp:204:11: error: 'printf_P' was not declared in this scope
           );
           ^
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp: In member function 'void RF24::print_byte_register(const char*, uint8_t, uint8_t)':
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp:212:48: error: 'printf_P' was not declared in this scope
   printf_P(PSTR(PRIPSTR"\t%c ="),name,extra_tab);
                                                ^
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp: In member function 'void RF24::print_address_register(const char*, uint8_t, uint8_t)':
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp:223:48: error: 'printf_P' was not declared in this scope
   printf_P(PSTR(PRIPSTR"\t%c ="),name,extra_tab);
                                                ^
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp: In member function 'void RF24::printDetails()':
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp:325:93: error: 'printf_P' was not declared in this scope
   printf_P(PSTR("Data Rate\t = %S\r\n"),pgm_read_word(&rf24_datarate_e_str_P[getDataRate()]));
                                                                                             ^
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp: In member function 'void RF24::begin()':
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp:382:34: error: '_BV' was not declared in this scope
   write_register(STATUS,_BV(RX_DR) | _BV(TX_DS) | _BV(MAX_RT) );
                                  ^
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp: In member function 'void RF24::startListening()':
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp:398:60: error: '_BV' was not declared in this scope
   write_register(CONFIG, read_register(CONFIG) | _BV(PWR_UP) | _BV(PRIM_RX));
                                                            ^
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp: In member function 'void RF24::powerDown()':
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp:429:60: error: '_BV' was not declared in this scope
   write_register(CONFIG,read_register(CONFIG) & ~_BV(PWR_UP));
                                                            ^
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp: In member function 'void RF24::powerUp()':
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp:436:59: error: '_BV' was not declared in this scope
   write_register(CONFIG,read_register(CONFIG) | _BV(PWR_UP));
                                                           ^
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp: In member function 'bool RF24::write(const void*, uint8_t)':
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp:468:34: error: '_BV' was not declared in this scope
   while( ! ( status & ( _BV(TX_DS) | _BV(MAX_RT) ) ) && ( millis() - sent_at < timeout ) );
                                  ^
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp: In member function 'void RF24::startWrite(const void*, uint8_t)':
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp:510:62: error: '_BV' was not declared in this scope
   write_register(CONFIG, ( read_register(CONFIG) | _BV(PWR_UP) ) & ~_BV(PRIM_RX) );
                                                              ^
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp: In member function 'bool RF24::available(uint8_t*)':
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp:552:37: error: '_BV' was not declared in this scope
   bool result = ( status & _BV(RX_DR) );
                                     ^
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp: In member function 'bool RF24::read(void*, uint8_t)':
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp:585:51: error: '_BV' was not declared in this scope
   return read_register(FIFO_STATUS) & _BV(RX_EMPTY);
                                                   ^
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp: In member function 'void RF24::whatHappened(bool&, bool&, bool&)':
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp:594:51: error: '_BV' was not declared in this scope
   uint8_t status = write_register(STATUS,_BV(RX_DR) | _BV(TX_DS) | _BV(MAX_RT) );
                                                   ^
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp: In member function 'void RF24::openReadingPipe(uint8_t, uint64_t)':
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp:652:101: error: '_BV' was not declared in this scope
     write_register(EN_RXADDR,read_register(EN_RXADDR) | _BV(pgm_read_byte(&child_pipe_enable[child])));
                                                                                                     ^
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp: In member function 'rf24_crclength_e RF24::getCRCLength()':
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp:957:54: error: '_BV' was not declared in this scope
   uint8_t config = read_register(CONFIG) & ( _BV(CRCO) | _BV(EN_CRC)) ;
 C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp: In member function 'void RF24::disableCRC()':
C:\Users\Trong Nguyen\Documents\Arduino\libraries\RF24\RF24.cpp:974:56: error: '_BV' was not declared in this scope
   uint8_t disable = read_register(CONFIG) & ~_BV(EN_CRC) ;                                                     ^
                                                        ^
Error compiling.

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.

This is my Code:

No, it isn't. THAT is a quote. Code goes in code tags, not quote tags.

and i got this error

Posting a picture of text is a bad idea. Not posting the FIRST error message is a bad idea.

Try again.

It is still a picture of text. It still does not show the first error. Compilers are very smart, but once things go wrong, they get rather stupid. You MUST deal with the FIRST error first. Since we can't see what the FIRST error is, YOU need to deal with it yourself.

PaulS:
It is still a picture of text. It still does not show the first error. Compilers are very smart, but once things go wrong, they get rather stupid. You MUST deal with the FIRST error first. Since we can't see what the FIRST error is, YOU need to deal with it yourself.

ok! i has fixed it!

Sorry for post revival, but please post what solution you have found . Thank you!

mtn_silviu:
Sorry for post revival, but please post what solution you have found . Thank you!

Why do you think OP ever found a useful solution? Post YOUR code and YOUR errors/problems, if you want help.

This Simple nRF24L01+ Tutorial may help.

...R