Class for DHT11, DHT21 and DHT22 (temperature & humidity)

Sorry for the late reaction, I missed it somehow.

sanhardik:
Hello Rob,
I tried this library on Arduino Due and it seems since its SAM series processor the includes for AVR wont work (avr/io.h etc).
Can you suggest changes to make this library compile and work on Arduino Due boards .

Thanks for the help

I have no Due operational, but you should check the private read() function.
It uses a #define TIMEOUT 10000 which is tuned for the 16Mhz UNO. so it will trigger too fast on an DUE.
As the Due is 84 MHz ==> 5.25 x as fast, you should adjust the TIMEOUT to 60000 (at least)

A more permanent solution should derive a clock dependant timeout like this

#define TIMEOUT (F_CPU/1600)

please give it a try.