Error message:
Arduino: 1.8.9 (Windows 7), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200" In file included from C:\Users\CHAFIK\Desktop\newlesDHT\f021ba834a4db70d7313605d89d34e6e-139abfac20cf5eae0d045bd508e59b9e7f7e4b61\f021ba834a4db70d7313605d89d34e6e-139abfac20cf5eae0d045bd508e59b9e7f7e4b61\ESP8266_Build_a_Powerful_Web_Server\ESP8266_Build_a_Powerful_Web_Server.ino:2:0: C:\Users\CHAFIK\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> ^ compilation terminated. exit status 1 Error compiling for board NodeMCU 1.0 (ESP-12E Module). Invalid library found in C:\Program Files (x86)\Arduino\libraries\Adafruit_Sensor: no headers files (.h) found in C:\Program Files (x86)\Arduino\libraries\Adafruit_Sensor Invalid library found in C:\Program Files (x86)\Arduino\libraries\DHT: no headers files (.h) found in C:\Program Files (x86)\Arduino\libraries\DHT Invalid library found in C:\Program Files (x86)\Arduino\libraries\DHT-sensor: no headers files (.h) found in C:\Program Files (x86)\Arduino\libraries\DHT-sensor Invalid library found in C:\Program Files (x86)\Arduino\libraries\Adafruit_Sensor: no headers files (.h) found in C:\Program Files (x86)\Arduino\libraries\Adafruit_Sensor Invalid library found in C:\Program Files (x86)\Arduino\libraries\DHT: no headers files (.h) found in C:\Program Files (x86)\Arduino\libraries\DHT Invalid library found in C:\Program Files (x86)\Arduino\libraries\DHT-sensor: no headers files (.h) found in C:\Program Files (x86)\Arduino\libraries\DHT-sensor This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
3 Answers
Hello, it looks like you need to install the Adafruit_Sensor library. Follow the next steps to install the library in your Arduino IDE:
- Click here to download the Adafruit_Sensor library. You should have a .zip folder in your Downloads folder
- Unzip the .zip folder and you should get Adafruit_Sensor-master folder
- Rename your folder from Adafruit_Sensor-master to Adafruit_Sensor
- Move the Adafruit_Sensor folder to your Arduino IDE installation libraries folder
- Finally, re-open your Arduino IDE