-1

I have a problem on my DHT libraries, it wont identified on my arduino IDE. it says

C:\Users\User\Documents\Arduino\DHT22\DHT22.ino:1:10: fatal error: DHT.h: No such file or directory #include <DHT.h> ^~~~~~~ compilation terminated. exit status 1

Compilation error: DHT.h: No such file or directory

I already downloaded the libraries from the library manager, and still nothing changes. here's my DHT.h path

C:\Users\User\OneDrive\文档\Arduino\libraries\DHT_sensor_library

please i need some help of you guys

3
  • Your ino file is on the local disk, while the Arduino library folder is in a OneDrive folder. They're usually at the same place, so maybe it can't find the library?
    – PMF
    Commented Mar 13 at 14:28
  • i already changed my ino file folder to here, C:\Users\User\OneDrive\文档\Arduino\. but it still cant read my library :( Commented Mar 14 at 3:26
  • Can you try it the other way round (copy the "libraries" folder to "C:\Users\User\Documents\Arduino"?
    – PMF
    Commented Mar 14 at 6:57

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.