• 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 bme 280 or 680 error with platformio

Q&A Forum › Category: ESP32 › Adafruit bme 280 or 680 error with platformio
0 Vote Up Vote Down
pthiercelin asked 4 years ago

Dear all
I am following the ebook Build_Web_Servers_ESP32_ESP8266_V2 with vs code and platform io.
with a heltec_wifi_kit_32 card.
My problem:
I tried with blink program for validate the environment and was perfect
after I installed the adafruit bme 280 with adafruit unified sensor
I did the upload process and received the messsage:
In file included from .pio\libdeps\heltec_wifi_kit_32\Adafruit BME280 Library\Adafruit_BME280.cpp:31:0:
.pio\libdeps\heltec_wifi_kit_32\Adafruit BME280 Library\Adafruit_BME280.h:26:29: fatal error: Adafruit_Sensor.h: No such file or directory
*************************************************************************
* Looking for Adafruit_Sensor.h dependency? Check our library registry!
* CLI > platformio lib search “header:Adafruit_Sensor.h”
* Web > https://platformio.org/lib/search?query=header:Adafruit_Sensor.h
*************************************************************************
compilation terminated.
Please can you help me?
Thanks in advance

1 Answers
1 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
In that section of the eBook, it shows how you would proceed if you wanted to include a library.
If you don’t use it in your sketch, you’ll get an error.
You should also include it in your sketch:

#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>

I’m sorry that it is not clear.
Let me know if this answers your question.
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.