Thursday, October 31, 2019

Error: Adafruit_Sensor.h: No such file with Arduino IDE (DH11) compile error

I want to use DH11 ,but compile  error.

In file included from
C:\Users\username
\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.cpp:22:0:
C:\Users\username\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.h:25:29: fatal error: Adafruit_Sensor.h: No such file or directory
 #include <Adafruit_Sensor.h>




You have to install "Adafruit Unified Sensor" library with arduino library manager.Maybe can fix this problem.

If you still have this problem.

you can add "#include <Adafruit_Sensor.h>" in code.

No comments:

Post a Comment