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.
Which is exactly why I don't do it that way. I can back up all the way to Rel. 1.05 if I want to and check out the original libraries. I prefer it that way.
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.
Library which i am using is DHT library sensor from adafruit version 1.3.0.
I found it from Sketch > Include Library > Manage Libraries > DHT library sensor from adafruit version 1.3.0.
I installed the update and recieved this error:-
exit status 1
Error compiling for board Arduino/Genuino Uno.
sul97:
Library which i am using is DHT library sensor from adafruit version 1.3.0.
I found it from Sketch > Include Library > Manage Libraries > DHT library sensor from adafruit version 1.3.0.
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.
Please do this:
File > Preferences > Show verbose output during: > compilation (check) > OK
Sketch > Verify/Compile
After the compilation fails you'll see a button on the right side of the orange bar "Copy error messages". Click that button.
Paste the error messages in a reply here USING CODE TAGS (</> button on the toolbar).
sul97:
Using library DHTLib in folder: C:\Users\sultan\Documents\Arduino\libraries\DHTLib (legacy)
That is a different library from the DHT Sensor Library by Adafruit that you installed. You need to refer to the documentation and/or example sketches of the library you're actually using.
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.