• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP8266 – Adafruit_Sensor.h: No such file or directory

Q&A Forum › Category: ESP8266 › ESP8266 – Adafruit_Sensor.h: No such file or directory
0 Vote Up Vote Down
chafik_76 asked 4 years ago

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
1 Vote Up Vote Down
Rui Santos Staff answered 4 years ago

Hello, it looks like you need to install the Adafruit_Sensor library. Follow the next steps to install the library in your Arduino IDE:

  1. Click here to download the Adafruit_Sensor library. You should have a .zip folder in your Downloads folder
  2. Unzip the .zip folder and you should get Adafruit_Sensor-master folder
  3. Rename your folder from Adafruit_Sensor-master to Adafruit_Sensor
  4. Move the Adafruit_Sensor folder to your Arduino IDE installation libraries folder
  5. Finally, re-open your Arduino IDE
0 Vote Up Vote Down
chafik_76 answered 4 years ago

Hello sir
I thank you a lot for the helpe, Im sorry still  have the same problem

0 Vote Up Vote Down
Rui Santos Staff answered 4 years ago

If you installed that library, you should have that problem. Did you restart your Arduino IDE? Can you double-check that you’ve moved and re-named the file in the right folder? Thanks for your patience!

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.