dht11 + DUE error compile

The dht11 sensor works pretty good in the UNO but when i compile using DUE i get some errors. Would you explain me what's going on? and how to fix it please. :c
I would really appreciate your help.

This is what i get after compile:

C:\Program Files (x86)\Arduino\libraries\DHT-sensor-library-master\DHT.cpp: In constructor 'DHT::DHT(uint8_t, uint8_t, uint8_t)':
C:\Program Files (x86)\Arduino\libraries\DHT-sensor-library-master\DHT.cpp:14:9: error: invalid conversion from 'Pio*' to 'uint8_t {aka unsigned char}' [-fpermissive]
   _port = digitalPinToPort(pin);
         ^
Error de compilación

I give you the library if you need it.
Thanks for your help

DHT-sensor-library-master.zip (6.72 KB)

This seems an optimized version, or UNO specific.

You could try the stable version of my DHT lib, should work with DUE too.

Great work robtillaart, thank you.

Works very fine on Due (DTH11 Vcc 3.3V)

robtillaart,

I still don't understand just how to download your DHT library. No zip file or download buttons.

Joe

find attached the stable DHT version which is reported to work with DUE.

dht 0.1.13.zip (2.17 KB)