DHT11 issues, HELP!

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
PsychDoc
 
Posts: 7
Joined: Thu Jun 07, 2018 11:10 am

DHT11 issues, HELP!

Post by PsychDoc »

Using three pin or four pin (I have both) to gather relative humidity and temp data. After setting up, all I get are zeros. Now I have an error message:

Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno"

In file included from C:\Users\Michael\Documents\Arduino\libraries\DHT-sensor-library-master\DHT_U.cpp:22:0:

C:\Users\Michael\Documents\Arduino\libraries\DHT-sensor-library-master\DHT_U.h:25:29: fatal error: Adafruit_Sensor.h: No such file or directory

#include <Adafruit_Sensor.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.

User avatar
adafruit_support_carter
 
Posts: 29159
Joined: Tue Nov 29, 2016 2:45 pm

Re: DHT11 issues, HELP!

Post by adafruit_support_carter »

You need to also install the Unified Sensor Library.
https://github.com/adafruit/Adafruit_Sensor
You can find it in the Library Manager if you filter your search for "unified sensor abstraction"

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”