the communication to the DHT22 has already been discussed, e.g. here.
Good luck!
Regards
/Peter
In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.