Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: DHT.h: No such file or directory #86

Closed
FlorentSms opened this issue Oct 1, 2017 · 12 comments
Closed

Fatal error: DHT.h: No such file or directory #86

FlorentSms opened this issue Oct 1, 2017 · 12 comments

Comments

@FlorentSms
Copy link

Good evening,

Being a beginner in the arduino, I am currently experiencing a problem with my program. I try to read the data sent by a DHT11 type sensor.

I have correctly installed the library that you put online. I verified that it's in the Arduino libraries folder and I have checked that the Arduino IDE visualizes it well.

But when I try to upload the program, that's what he tells me:
https://puu.sh/xNwjj/e0bf912c99.png
https://puu.sh/xNwn6/1ad8fc18a3.png
https://puu.sh/xNwpB/23ace6dcb7.png

I think my library is well installed but I have the impression that it doesn't recognize it.
I hope you can help me.

Good night.

Florent

@geofbaum
Copy link

geofbaum commented Oct 1, 2017

@FlorentSms Can you delete the folder labeled DHT and download it through the Arduino IDE. The folder is not normally labeled just simply DHT as you show in your libraries folder. I don't think that's the issue but just to be on the safe side, I would remove the folder that you downloaded and said that you correctly installed. After you remove that folder go into Manage Libraries and search for DHT Sensor library and download it through the IDE. Try to upload it again to your Arduino after that is complete and report back if you are still having issues. The problem that you are having is normally related to something simple like it was not properly installed or that there are more than one copies of the DHT.h file floating around in your libraries folder.

Here is a picture of the Manage Libraries screen and the one you want to download to verify what you are after.
arduino_dht

@geofbaum
Copy link

geofbaum commented Oct 1, 2017

Also as an aside, you aren't using the same library as this one, you are using the SimpleDHT library so if my idea fixes your problem that is possibly a start. The SimpleDHT code is hosted at the following link I believe, https://github.com/winlinvip/SimpleDHT

@FlorentSms
Copy link
Author

Hello @geofbaum ,
I have try your solutions but i have, for the 2 solutions, the same problem.

Thanks in advance.

Florent.

@geofbaum
Copy link

geofbaum commented Oct 3, 2017

@FlorentSms Can you upload an image of what the files in your DHT library folder look like. I just want to check to make sure capitalization or if somehow the files are misnamed somehow.

@FlorentSms
Copy link
Author

@SuriGangs
Copy link

Hi, could you solve your problem?

@JackZ0
Copy link

JackZ0 commented Dec 27, 2018

\Adafruit_AM2320_sensor_library/Adafruit_AM2320.h:41:29: fatal error: Adafruit_Sensor.h: No such file or directory

@isekaimaou1109
Copy link

isekaimaou1109 commented Apr 6, 2020

@FlorentSms Can you delete the folder labeled DHT and download it through the Arduino IDE. The folder is not normally labeled just simply DHT as you show in your libraries folder. I don't think that's the issue but just to be on the safe side, I would remove the folder that you downloaded and said that you correctly installed. After you remove that folder go into Manage Libraries and search for DHT Sensor library and download it through the IDE. Try to upload it again to your Arduino after that is complete and report back if you are still having issues. The problem that you are having is normally related to something simple like it was not properly installed or that there are more than one copies of the DHT.h file floating around in your libraries folder.

Here is a picture of the Manage Libraries screen and the one you want to download to verify what you are after.
arduino_dht

yeah i see and when i do it as you said, i also get the same error
delete DHT folder in libraries then install it via Arduino IDE and still get that error and don't have any file DHT.h floating around my sketch
help me please, graceful and tks so much <3 @geofbaum

@Diohicham
Copy link

Arduino: 1.8.13 (Windows Store 1.8.42.0) (Windows 10), Board: "Arduino Uno"

sketch_nov10a:1:10: fatal error: dht.h: No such file or directory

#include "dht.h"

      ^~~~~~~

compilation terminated.

exit status 1

dht.h: No such file or directory

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

@ZsoZ
Copy link

ZsoZ commented Sep 2, 2021

#include <DHT.h>

@Arely-M
Copy link

Arely-M commented Jun 19, 2022

Puede ser porque falta una librería Adafruit Unified Sensor, esta viene al instalar todo desde el administrador de bibliotecas
libreria

@hernandez2david
Copy link

Puede ser porque falta una librería Adafruit Unified Sensor, esta viene al instalar todo desde el administrador de bibliotecas
You Rock Arely! This worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants