Structure of library DHT11 , Temp and Moisture sensor

I am very new here :wink: and try to compile a sketch file.

Arduino: 1.8.5 (Windows 7), Board: “Arduino/Genuino Uno”

D:\Ardino\DHT\DHT\DHT11\DHT11.ino:62:19: fatal error: dht11.h: No such file or directory

#include <dht11.h>

^

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.

Did you install the library according to the instructions?

Hm, I bought that sensor and got the code from that supplier.
What surprised me there were different files to download.
The "code.txt " , opened it and with copy and pasted it into Sketch.
I was surprised that i saw the#include " and then the error.
I copied it all together in 1 folder , the sketch, The .ccp and the .h .
Still the compilor does not find it , despite i pick it up all together in 1 folder.
hmm , i think now , "Does the system look / search in a different place ?

I am reading the rules now. Sorry to be so rude , fist issuing my problem without suppliing the right info.

Hmm, no R mouse button to paste. Have to find it out. Sorry

Why bother with that junk? Just download any one of many DHT libraries that are available online. Read the instructions that come with it.

aarg:
Did you install the library according to the instructions?

I built a new one on my D-drive.
Let me move the thing to the original C; drive / Arduino and see what happens.

HarvdL:
I built a new one on my D-drive.
Let me move the thing to the original C; drive / Arduino and see what happens.

The IDE does not search your entire computer for libraries. You need to consult the documentation about library use on this site.

You can put everything in the sketch folder as a last resort.

If you have the files you want to include in the sketch folder you're using the wrong syntax. It should be:

#include "dht11.h"

If putting the files in the sketch folder is what you actually want to do, then fine, but don't use it as a workaround because you don't know how to install a library properly because that's an important skill to learn. The advantage to installing the files as a library is that you can share those files between multiple sketches, rather than needing to put a copy of them with every sketch that requires them.

You can find some information on manually installing libraries here:

Tnx all of you.
Special the link with the guide to libraries.

Let me focus on the library structure lesson this rainy afternoon :slight_smile:

I started importing the libtaries on 2 differently computers. This makes it more complicated for me.

Also the web editor looks an additional item to make it more complex.

Is it right that i should focus on the local libraries first ?