Somewhere on your system is the directory where you installed your Arduino IDE. You can use your computer's search facility (e.g., Windows Explore) to find out where the directory that holds arduino.exe is located. Within that directory is a subdirectory name libraries. Your DHT library files need to be located in the libraries subdirectory for the Arduino IDE to find it.
econjack:
Somewhere on your system is the directory where you installed your Arduino IDE. You can use your computer's search facility (e.g., Windows Explore) to find out where the directory that holds arduino.exe is located. Within that directory is a subdirectory name libraries. Your DHT library files need to be located in the libraries subdirectory for the Arduino IDE to find it.
You should never install libraries to the Arduino IDE installation folder. The reason is that everything in the Arduino IDE installation folder is lost every time you update to a new IDE version. The correct place to install them (and the place where the Arduino IDE's Sketch > Include Library > Manage libraries.. and Sketch > Include Library > Add .ZIP Library... install to) is the libraries subfolder of the sketchbook folder. You can find the location of the sketchbook folder in the Arduino IDE at File > Preferences > Sketchbook location.
pert:
You should never install libraries to the Arduino IDE installation folder. The reason is that everything in the Arduino IDE installation folder is lost every time you update to a new IDE version.
Well if that makes sense for some weird specialized requirements of yours, go ahead. But that doesn't mean you should go giving horrible advice to random Arduino beginners who are only ever going to have one IDE version at a time installed.
I seriously doubt that I'm the only person here who has had to "retreat" to an earlier version of the IDE, or the suite of library files, or both. My post simply suggested that placing libraries in the libraries subdirectory is necessary for the compiler to find the include files.
Post a link to where you got the library from. Please use the chain links icon on the toolbar to make it clickable. Or if you installed it using Library Manger (Sketch > Include Library > Manage Libraries) then say so and state the full name of the library.
pert:
Post a link to where you got the library from. Please use the chain links icon on the toolbar to make it clickable. Or if you installed it using Library Manger (Sketch > Include Library > Manage Libraries) then say so and state the full name of the library.
That library does not contain a file named dht.h, so it's not the library you're using. It does contain a file named DHT.h but filenames are case sensitive in Arduino sketches, even on filename case insensitive operating systems.
If you're going to do that then please be considerate enough to add links to the other places you cross posted. This will let us avoid wasting time due to duplicate effort and also help others who have the same questions and find your post to discover all the relevant information. When you post links please always use the chain links icon on the toolbar to make them clickable.
I try to connect a dht22 sensor. There is a DHT-Library available, i can include it, but when i try to instantiate an object, it says "dht.h not found". I am confused with the libraries and the different location where they should be or not:
which will compile and upload. I am now searching, how to connect the dht22 properly, until now the uno says, that humadity and temperature is "-99,5" but i have an other impression of the temperature here. I try, where to connect the dht22 pin.
c80f0f1006