• 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

Adafruit_Sensor.h

Q&A Forum › Adafruit_Sensor.h
0 Vote Up Vote Down
Joe Margevicius asked 3 years ago
3 Answers
0 Vote Up Vote Down
Joe Margevicius answered 3 years ago

I’m not a heavy user of Arduino IDE (it’s terrible!), but the eBook “Learn ESP32 with Arduino IDE” uses it, so I’m stuck with it (I’m on a PC).  I upgraded to IDE 2.0 hoping it would be better, but it’s not.  Anyway, I want to do the ESP_NOW chapter, and have to upload libraries Adafruit_GFX, Adafruit_SSD1306, Adafruit_Sensor, and Adafuit BME280.  In the library manger, these libraries don’t come up, and of course, when I try to build the ESP_NOW_Sender_Receiver_Two_Way.ino  I get: Compilation error: Adafruit_Sensor.h: No such file or directory  (I do have the https://dl.espressif.com/dl/package_esp32_index.json link in File/Preferences)
 
I saw a post on this and downloaded each of those libraries from github, removed the -master on the unzipped version, but I can’t find where to put them.  Unlike IDE 1.x, where libraries are in the /ProgramFiles (x86)/Arduino/libraries directory, in IDE 2.0 (a 64bit compile), the libraries are not obvious.  Any help would be appreciated 🙂

0 Vote Up Vote Down
Joe Margevicius answered 3 years ago

I must have touched a “hornets’ nest” = IDE 2.0.  … ok, so de-installed that; reinstalled IDE 1.8.16, and followed the instructions on pg 425 of “Learn ESP32 using Arduino IDE” eBook, except couldn’t find “Adafruit Unified Sensor Library” … but apparently didn’t need it.  The code of this Module 8 Unit 2 compiles fine, downloads fine and works fine. …. a happy camper here 🙂

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Ok.
Great!
At the moment, I don’t recommend using Arduino 2.0 for the ESP32 yet.
Probably the Adafruit Sensor was installed automatically when you installed the BME280 library.
I’m glad everything is working as expected now.
I’ll mark this issue as resolved.
Regards,
Sara

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] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

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

Copyright © 2013-2025 · 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.