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
Closed
FlorentSms opened this issue
Oct 1, 2017
· 12 comments
Comments
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
@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.
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
Hello @geofbaum ,
I have try your solutions but i have, for the 2 solutions, the same problem.
Thanks in advance.
Florent.
@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.
Hi, could you solve your problem?
Adafruit_AM2320_sensor_library/Adafruit_AM2320.h:41:29: fatal error: Adafruit_Sensor.h: No such file or directory
@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.
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
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.
Puede ser porque falta una librería Adafruit Unified Sensor, esta viene al instalar todo desde el administrador de bibliotecas
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
Содержание
- Fatal error: DHT.h: No such file or directory #86
- Comments
- fatal error dht.h No such file or directory
- Arduino.ru
- Регистрация новых пользователей и создание новых тем теперь только на новом форуме https://forum.arduino.ru
- forum.arduino.ru
- DHT11
- Помогите с ошибкой на Arduino Nano
- Ошибка компиляции Arduino
Fatal error: DHT.h: No such file or directory #86
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.
I think my library is well installed but I have the impression that it doesn’t recognize it.
I hope you can help me.
The text was updated successfully, but these errors were encountered:
@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.
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
Hello @geofbaum ,
I have try your solutions but i have, for the 2 solutions, the same problem.
Thanks in advance.
@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.
Hi, could you solve your problem?
Adafruit_AM2320_sensor_library/Adafruit_AM2320.h:41:29: fatal error: Adafruit_Sensor.h: No such file or directory
@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.
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
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
dht.h: No such file or directory
This report would have more information with
«Show verbose output during compilation»
option enabled in File -> Preferences.
Источник
fatal error dht.h No such file or directory
При подключении датчика влажности и температуры (DHT11 temp and humidity) — появляется ошибка в Arduino:
C:UsersСила МыслиDesktopDocumentsArduinoTemp and humidity DHT11Temp_and_humidity_DHT11Temp_and_humidity_DHT11.ino:1:17: fatal error: dht.h: No such file or directory
compilation terminated.
exit status 1
Ошибка компиляции для платы Arduino/Genuino Uno.
Ошибка говорит о том, что отсутствует библиотека dht.h в Arduino. Для установки библиотеки переходим Скетч -> Подключить библиотеку -> Управлять библиотеками
В поиске вводим dht и устанавливаем библиотеку DHT
Важным моментом также является то, как библиотека DHT подключается к проекту
Также устанавливаем библиотеку Adafruit Unified Sensor, чтобы исключить ошибку
sketchDHT_U.h:36:29: fatal error: Adafruit_Sensor.h: No such file or directory
Данная библиотека подключается так
Часто бывает так, что встроенная библиотека тоже не подходит и необходимо найти ту библиотеку, которая подойдет к датчику на стороннем сайт в виде zip архива. В нашем случае подошла библиотека DHT-sensor-library. Чтобы eё загрузить в Arduino Скетч -> Подключить библиотеку -> Добавить .ZIP библиотеку и указываем путь до библиотеки.
В итоги датчик DHT11 temp and humidity стал правильно давать показания температуры и влажности.
Источник
Arduino.ru
Регистрация новых пользователей и создание новых тем теперь только на новом форуме https://forum.arduino.ru
forum.arduino.ru
DHT11
Чего я не понимаю ? В скетче нет ничего кроме шаблона и подключаемой библиотеки
вот это при компиляции
Arduino: 1.6.9 (Windows XP), Плата:»Arduino/Genuino Uno»
In file included from C:Documents and SettingsadminМои документыArduinolibrariesDHT_sensor_libraryDHT_U.cpp:22:0:
C:Documents and SettingsadminМои документыArduinolibrariesDHT_sensor_libraryDHT_U.h:25:29: fatal error: Adafruit_Sensor.h: No such file or directory
exit status 1
Ошибка компиляции для платы Arduino/Genuino Uno
Чего я не понимаю ? В скетче нет ничего кроме шаблона и подключаемой библиотеки
вот это при компиляции
Arduino: 1.6.9 (Windows XP), Плата:»Arduino/Genuino Uno»
In file included from C:Documents and SettingsadminМои документыArduinolibrariesDHT_sensor_libraryDHT_U.cpp:22:0:
C:Documents and SettingsadminМои документыArduinolibrariesDHT_sensor_libraryDHT_U.h:25:29: fatal error: Adafruit_Sensor.h: No such file or directory
exit status 1
Ошибка компиляции для платы Arduino/Genuino Uno
Это в Вашем скетче больше ничего нет. А вот библиотека DHT.h которую Вы подключаете хочет ещё одну библиотеку Adafruit_Sensor.h. Всё же написано — в каком файле, в какой строчке что не так.
ReadAnalogVoltage:43: error: stray ‘253’ in program
Serial.println(«Не удается считать показания»);
ReadAnalogVoltage:43: error: stray ‘315’ in program
ReadAnalogVoltage:43: error: stray ‘345’ in program
ReadAnalogVoltage:43: error: stray ‘363’ in program
ReadAnalogVoltage:43: error: stray ‘344’ in program
ReadAnalogVoltage:43: error: stray ‘340’ in program
ReadAnalogVoltage:43: error: stray ‘345’ in program
ReadAnalogVoltage:43: error: stray ‘362’ in program
ReadAnalogVoltage:43: error: stray ‘361’ in program
ReadAnalogVoltage:43: error: stray ‘377’ in program
ReadAnalogVoltage:43: error: stray ‘361’ in program
ReadAnalogVoltage:43: error: stray ‘367’ in program
ReadAnalogVoltage:43: error: stray ‘350’ in program
ReadAnalogVoltage:43: error: stray ‘362’ in program
ReadAnalogVoltage:43: error: stray ‘340’ in program
ReadAnalogVoltage:43: error: stray ‘362’ in program
ReadAnalogVoltage:43: error: stray ‘374’ in program
ReadAnalogVoltage:43: error: stray ‘357’ in program
ReadAnalogVoltage:43: error: stray ‘356’ in program
ReadAnalogVoltage:43: error: stray ‘352’ in program
ReadAnalogVoltage:43: error: stray ‘340’ in program
ReadAnalogVoltage:43: error: stray ‘347’ in program
ReadAnalogVoltage:43: error: stray ‘340’ in program
ReadAnalogVoltage:43: error: stray ‘355’ in program
ReadAnalogVoltage:43: error: stray ‘350’ in program
ReadAnalogVoltage:43: error: stray ‘377’ in program
ReadAnalogVoltage:43: error: stray ‘273’ in program
ReadAnalogVoltage:49: error: stray ‘253’ in program
ReadAnalogVoltage:49: error: stray ‘253’ in program
ReadAnalogVoltage:51: error: stray ‘273’ in program
ReadAnalogVoltage:51: error: stray ‘253’ in program
ReadAnalogVoltage:53: error: stray ‘273’ in program
ReadAnalogVoltage:53: error: stray ‘273’ in program
1Temparduino_modified_sketch_812795ReadAnalogVoltage.ino: In function ‘void loop()’:
ReadAnalogVoltage:49: error: ‘Hum’ was not declared in this scope
ReadAnalogVoltage:51: error: ‘Temp’ was not declared in this scope
ReadAnalogVoltage:53: error: ‘C’ was not declared in this scope
exit status 1
stray ‘253’ in program
я так полагаю или не правильно подсоединил или датчик мертв ?
#define DHTPIN 3 // номер пина, к которому подсоединен датчик
// Раскомментируйте в соответствии с используемым датчиком
//DHT dht(DHTPIN, DHT22);
DHT dht(DHTPIN, DHT11);
// Задержка 2 секунды между измерениями
float h = dht.readHumidity();
float t = dht.readTemperature();
// Проверка удачно прошло ли считывание.
if (isnan(h) || isnan(t)) <
Serial.println(«Не удается считать показания»);
Serial.print(«Hum: «);
Serial.print(h);
Serial.print(» Temp: «);
Serial.print(t);
Serial.println(» C»);
еще одно, если я плюс подал на сигнал датчика, сигнал воткнул в плюс датчика, а GND правильно. Датчику пиз. или все таки нет ?
Вы раз уж этой областью заинтересовались, то для начала бы хоть немного с языком программирования познакомились. Книжки какие-нибудь почитали, в самом верху странички ссылка «Программирование» тоже не просто так приделана. Здесь ведь не расшифровывать, а просто прочитать нужно. Так что ещё раз я за Вас это сделаю, а дальше уж сами, сами. В этой строчке вы пытаетесь сложить «нескладываемое» — строку символов и число с плавающей точкой. Конечно так нельзя. А как можно, посмотрите в примерах к библиотеке.
И сам форум этот полистайте. Много полезного. И даже обязательного: Вставка программного кода в тему/комментарий
Источник
Помогите с ошибкой на Arduino Nano
#include
#include
#include
#include «DHT.h»
#define DHTPIN 10
DHT dht(DHTPIN, DHT11);
int kCePin = 4;
int kIoPin = 3;
int kSclkPin = 2;
int REDpin = 9;
int GREENpin = 6;
int BLUEpin = 11;
DS1302 rtc(kCePin, kIoPin, kSclkPin);
LiquidCrystal_I2C lcd(0x21,16,2); // 0x20..0x27 Adrees
unsigned long memTime;
int bzzPin = 9;
void rtcsettime(int _h, int _m, int _s) <
rtc.helt(true);
rtc.writeProtect(false);
rtc.hour(_h);
rtc.minuters(_m);
rtc.seconds(_s);
rtc.halt(false);
>
void HumTempRead() <
float hum = dht.readHumidity();
float temp = dht.readTemperature();
if (isnan(hun) || isnan(temp)) <
Serial.println(«Failed to read from DHT sensor!»);
lcd.setCursor(0, 1);
lcd.print(«H=—% T=—«);
lcd.setCursor(11, 1);
lcd.print((char)223);
lcd.setCursor(12, 1);
lcd.print(«C «);
>else <
lcd.setCursor(0, 1);
lcd.print(«H=»);
lcd.setCursor(2, 1);
lcd.print(hum);
lcd.setCursor(4, 1);
lcd.print(«% T=+»);
lcd.setCursor(9, 1);
lcd.print(temp);
lcd.setCursor(11, 1);
lcd.print((char)223);
lcd.setCursor(12, 1);
lcd.print(«C «);
>
>
void setup_bzz() <
pinMode(bzzPin,OUTPUNT);
>
void bzz(int _bzzTime) <
tone(dzzPin, 2093, _bzzTime);
>
void setup() <
Serial.begin(9600);
dht.begin();
setup_bzz();
bzz(100);
// rtcsettime(0,50,0);
lcd.init();
lcd.home();
lcd.setCursor(0, 0);
>
void loop() <
if (rtc.hour() 2000)or(millis() Лучший ответ
fatal error: dht11.h: No such file or directory
фатальная ошибка: в dht11.h Нет такого файла или каталога
Источник
Ошибка компиляции Arduino



Привет всем! Попал в руки датчик DHT-11. Чуть мозг не сломал, не мог прицепить 
Arduino: 1.8.1 (Windows 7), Плата:»Arduino/Genuino Uno»
Warning: Board Intel:i586:izmir_fg doesn’t define a ‘build.board’ preference. Auto-set to: I586_IZMIR_FG
Warning: Board Intel:i586:izmir_fd doesn’t define a ‘build.board’ preference. Auto-set to: I586_IZMIR_FD
In file included from C:UsersshurDocumentsArduinolibrariesDHT_sens or_libraryDHT_U.cpp:22:0:
C:UsersshurDocumentsArduinolibrariesDHT_sens or_libraryDHT_U.h:25:29: fatal error: Adafruit_Sensor.h: No such file or directory
Проблему удалось решить только вручную установив недостающее в DHT_sensor_library 
Но на что 1.8.1 обращает внимание в первых строках.
Источник
Please be positive and constructive with your questions and comments.
-
Georges97427
- Posts: 15
- Joined: Fri Oct 02, 2015 10:03 am
dht library problem
Hello,
I built the project: temperature_whole_project.jpg. Unfortunately my librarary «dht» causes me an error /:
DHTServer.ino: 12: 21: fatal error: DHT.h: No such file or directory
compilation terminated.
Error when compiling.
Can you tell me where I could find the right DHT.h library?
Best regards
Georges
-
Georges97427
- Posts: 15
- Joined: Fri Oct 02, 2015 10:03 am
Re: dht library problem
Post
by Georges97427 » Fri Oct 02, 2015 1:12 pm
I changed DHT is what is ok but nothing happens:
When I download 1.6.5 IDE sends me
warning: failed espcomm_sync
error: failed espcomm_open
I installed the SSID and PW.
Thank you for your help because I am a beginner.
Best regards
-
Georges97427
- Posts: 15
- Joined: Fri Oct 02, 2015 10:03 am
Re: dht library problem
Post
by Georges97427 » Sun Oct 04, 2015 10:25 pm
Hi,
Sorry for my English (GER and FR)
the tutorial is: ESP8266 Temperature / Humidity Webserver
I use Win10
ACER Aspire V3-772g
For installation I use ESP-USB2serial + 01 + DHT22
I checked with the ESP-01 AT + RST instructions etc …. and it works!
the speed is : 115200Bd
but I still get the same message
thanks for your help
Best regards
-
Georges97427
- Posts: 15
- Joined: Fri Oct 02, 2015 10:03 am
Re: dht library problem
Post
by Georges97427 » Tue Oct 06, 2015 10:16 am
Hello,
DHT works!
But I get the message:
warning: failed espcomm_sync
error: failed espcomm_open
1-How do I install the firmware? (Github)
2-I have my back and my SSID PW ESP-01 works by AT commands.
Thank you for your response.
Best regards.
Georges
-
adafruit2
- Posts: 21370
- Joined: Fri Mar 11, 2005 7:36 pm
Re: dht library problem
Post
by adafruit2 » Wed Oct 07, 2015 10:05 am
sounds like you have an ESP8266 module issue — if the DHT works. we dont sell those any more. did you buy from adafruit?
-
Georges97427
- Posts: 15
- Joined: Fri Oct 02, 2015 10:03 am
Re: dht library problem
Post
by Georges97427 » Wed Oct 07, 2015 1:11 pm
No! Products are not Adafruit.
ESP8266 ESP-01=china
USB2serial = Arduino.
DHT = China.
But what firmware is needed for the ESP-01?
Thank you.
Please be positive and constructive with your questions and comments.







