Compile esp8266 wifi example dht11

Hi friends, I have a problem when you tried to load the sketch:

Hi friends, I have a problem when you tried to load the sketch:

[Unformatted code removed by moderator]

I receive this error:

Arduino: 1.8.5 (Windows 10), Board: "WeMos D1 R1, 80 MHz, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

C: \ Users \ NEU \ AppData \ Local \ Temp \ arduino_modified_sketch_721187 \ sketch_dec11b.ino: 40: 17: fatal error: DHT.h: No such file or directory

 #include <DHT.h>


compilation terminated.

exit status 1
Error compiling for board WeMos D1 R1.
Downloading ''
.... done.
Latest version: 0.6.1
Installed version: 0.6.1

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Enviar comentarios

@neurona please edit your post using the pencil icon at the bottom of the post and insert triple backticks at the beginning and end of your code.
Triple backticks look like this:


I’m sorry, you don’t know, is that okay?

Copy and paste the triple backticks from my post.
Put one set at the beginning of the code, on a line of its own, and another set at the end - also on a line of its own.



already solved it was a problem of libraries.

Yes, I could have told you that, but I make a point of not commenting until community members have followed the rules about how to post code.

When you create a new topic, as you did, you are presented with text which is aimed at guiding you through the type of information to include in your post, and which also explains how to post code. If you post code in future please read these guidelines before posting.


1 Like