I'm obviously quite new to this and I'm getting this error code when I try using the DHT Sensor Library that I downloaded. When I searched I got the library from GitHub. Is that not a compatible library source?
C:\Users\XXXXXXX\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>
When I check it appears to be in the correct folder on my computer
When I look in the folder C:\Users\XXXXXXX\Documents\Arduino\libraries it shows the DTH Sensor library there but it is the only library listed. It must be in the wrong folder. Where should it be saved?
You REALLY should use Tools + Folder Options, select the View tab, uncheck the "Hide extensions for know file types", and flip Microslop the bird for ever having considered implementing the *^+^&% stupid idea.
You need to also download and install the Adafruit_Sensor library. Why the site that you got the DHT library from didn't tell you that, and provide links, is a mystery.
you have to install the downloaded library. The file in the directory is still zipped. Zipped files do not belong in the library folder. Here is how to install libraries.. You will need to scroll down to "Importing a .zip Library".
This is the exact error code I get
In file included from C:\Users\XXXXXXX\Documents\Arduino\sketch_may09b\sketch_may09b.ino:2:0:
C:\Users\XXXXXXX\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.
Invalid library found in C:\Users\XXXXXXX\Documents\Arduino\libraries\Adafruit_Sensor-master: C:\Users\Peter.SaXXXXXXX\Documents\Arduino\libraries\Adafruit_Sensor-master
Didn't work either. It needs the full name or I get a different error. I'll wait till my son is home he is younger and smarter than me so he can likely figure it out. Thanks for your help though
The -master on the folder name will not cause the "No such file or directory" error or the "Invalid library found" warning on any IDE version that has Library Manager (which your screen shot shows you're using).
psam:
Invalid library found in C:\Users\XXXXXXX\Documents\Arduino\libraries\Adafruit_Sensor-master: C:\Users\Peter.SaXXXXXXX\Documents\Arduino\libraries\Adafruit_Sensor-master
This warning makes me suspect you have something like this:
If you already have the latter folder structure then I recommend you to delete the C:\Users\XXXXXXX\Documents\Arduino\libraries\Adafruit_Sensor-master folder and then unzip C:\Users\XXXXXXX\Documents\Arduino\libraries\Adafruit_Sensor-master.zip again so see if maybe C:\Users\XXXXXXX\Documents\Arduino\libraries\Adafruit_Sensor-master was corrupted the first time (which might have caused the strange error in your last reply).