NRF24L01 and hdt22

Hey

I am now working with arduino for school for the first time and I have to make a wireless connection with the FNR27L01 and the DHT22
I have already seen and tried some tutorials but I can not get the code. Could someone help me with the code,

Thanks

Here is a good tutorial for the RF24 radios.

this is my receiver code but not working:

#include "RF24.h"


RF24 myRadio (6, 7);
byte addresses[][6] = {"0"};

float remoteHumidity = 0.0;
float remoteTemperature = 0.0;

struct package
{
 float temperature ;
 float humidity ;
};

float previousIndoorHumidity = 0;
float previousIndoorTemperature = 10;

float previousRemoteHumidity = 0.1;
float previousRemoteTemperature = 0.1;

float indoorHumidity = 0;
float indoorTemperature = 0;

typedef struct package Package;
Package data;

void loop() {
void startWirelessCommunication();
{
 myRadio.begin(); 
 myRadio.setChannel(115); 
 myRadio.setPALevel(RF24_PA_MAX);
 myRadio.setDataRate( RF24_250KBPS ) ; 
 myRadio.openReadingPipe(1, addresses[0]);
 myRadio.startListening();
 delay(100);
}

void checkForWirelessData();
{
   if ( myRadio.available()) ;
 {
   while (myRadio.available());
   {
     myRadio.read( &data, sizeof(data) );
     previousRemoteTemperature = remoteTemperature;
     previousRemoteHumidity = remoteHumidity;
     remoteTemperature = data.temperature;
     remoteHumidity = data.humidity;
   }
   Serial.print("\nPackage:");
   Serial.print("\n");
   Serial.println(data.temperature);
   Serial.println(data.humidity);
  } 
 } 
}

I can't test the code (if I wanted to) without the transmitter code as well.

I suggest that you run some of the example sketches (unchanged) from the tutorial that I linked to make sure that the radios are communicating. Add complexity after the radios communicate. I know that that code works and we would have a common place to start troubleshooting if the examples do not work. One thing that is mentioned in the tutorial, but is important enough to repeat here, is to make sure to power the Arduino down and back up after any upload to the Arduino when programming with the NRF24. That will reset the radio, the radio does not reset with the Arduino reset.

Read the how to use this forum-please read sticky to see how to properly post code. You can edit your previous post to include code thags.