DHT22 Time out error

I am using Intel galileo gen2 as a development board, i have uploaded the code from arduinoplayground along with that i have put .h and cpp file in libraries->DHT folder but when i upload and checks the serial monitor it gives following error:

DHT22, Time out error, 0.0, 0.0
DHT22, Time out error, 0.0, 0.0
DHT22, Time out error, 0.0, 0.0
DHT22, Time out error, 0.0, 0.0

Please advice at which point i am doing mistake.

how much time delay to you have between DHT22 reads? that unit needs at least 2 seconds between each read

I made delay more than 2 seconds, around 5 seconds still no reading is being recorded!

show you code!