Arduino: 1.8.9 (Windows 10), Board: "Arduino/Genuino Uno"
In file included from C:\Users\Admin\OneDrive\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.cpp:15:0:
C:\Users\Admin\OneDrive\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.h:36:29: fatal error: Adafruit_Sensor.h: No such file or directory
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.
Koepel
June 18, 2023, 12:52pm
2
Welcome to the forum.
Are you using the Arduino IDE 2.1.0 ?
In the left bar is a icon for the Library Manager.
Search for "adafruit unified sensor" and install that library:
The compiler should say: "I can not find the Adafruit Unified Sensor library".
1 Like
I am currently using arduino 1.8.9 and which one should I download? There are multiple results when I put that on my search bar.
Koepel
June 18, 2023, 1:34pm
4
Never download random things from random websites.
The only one is the Arduino IDE from the arduino website: https://www.arduino.cc/en/software
By the way, version 1.8.9 has also a "Library Manager", you can use that as well.
2 Likes
The best way to install a library is to use the IDE library manager mentioned by @Koepel .
Here are instructions: >> https://docs.arduino.cc/software/ide-v1/tutorials/installing-libraries
You should, always , install with library manager, if possible.
1 Like
system
Closed
December 15, 2023, 1:47pm
6
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.