Why I cannot #include<DHT.h> in my code even I already installed the libraries

Why I cannot #include<DHT.h> in my code even I already installed the libraries.

@layheng, your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advise on) your project :wink: See About the Installation & Troubleshooting category.

  1. Which DHT library did you install?
  2. Where did you install it?
  3. Did you try the examples that come with the library? Do they work?
  4. What are the errors that you get?
  5. Show your code; don't forget to use code tags (the </> button above the reply text box).

Because you did something wrong? Wrong library? Installed in wrong place? Coding error?

If you post the code you tried you may get better answers.

Steve

How did you install them? Manually? Through the Arduino IDE? Is this the only library you are having issues with?

Post error messages, not screenshots of the IDE displaying error messages. One thing seems clear, however: You didn't properly install the library you are trying to load. Search for it into the expected path with your favourite file manager program.

3rd party libraries don't belong in the installation directory of the Arduino software. I suggest that you delete it.

I think that the library that you're trying to use is the adafruit dht library. After the above, you can install the Adafruit library using the library manager (menu sketch -> include library -> manage libraries.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.