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)