• 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

ESP32 and BME680 web server tutorial

Q&A Forum › Category: ESP32 › ESP32 and BME680 web server tutorial
0 Vote Up Vote Down
John Beaty asked 5 years ago

Hello All,

I am fairly new to Random Nerd Tutorials and this is my first post on this forum.  I am putting together a weather station and have so far got sensors working using my Raspberry Pi4b, which works quite well for various  temperatures, humidity, air pressure.

I have also got working the Adafruit Anemometer for wind speed using an Arduino Mega2560.  I am now turning my learning curve towards the ESP32 and hoping to get a remote wifi sensor station set up.

Using the ESP32 and BME680 web server tutorial I have hit a problem with the loading of the code to the ESP32.

If I use the ESP32 and BME680 sensor with the example BME680 test code all works well and the results are successfully sent to the serial monitor.  The ESP I have is the: ESP32-DevkitC-V4.  I can’t actually find this exact board in the ESP board manager, but the DOIT ESP32 Dev Kit V1 does work when the wifi code isn’t used.

This is the error I’m getting from the ESP32 BME680 web server code:

Multiple libraries were found for "Adafruit_Sensor.h"
Used: C:\Users\User A3U-1\Documents\Arduino\libraries\Adafruit_Sensor-master
Not used: C:\Users\User A3U-1\Documents\Arduino\libraries\Adafruit_Unified_Sensor-1.1.4
Multiple libraries were found for "WiFi.h"
Used: C:\Users\User A3U-1\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi
Not used: C:\Users\User A3U-1\Documents\Arduino\libraries\WiFiNINA
Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\libraries\WiFi
In file included from C:\Users\User A3U-1\Documents\Arduino\Weather_Station_WindSpeed\weather_station_wifi01_oct14a\weather_station_wifi01_oct14a.ino:29:0:
C:\Users\User A3U-1\Documents\Arduino\libraries\ESPAsyncWebServer\src/ESPAsyncWebServer.h:33:22: fatal error: AsyncTCP.h: No such file or directory
compilation terminated.
exit status 1

Error compiling for board DOIT ESP32 DEVKIT V1.

I am using the latest Arduino EDI and updated libraries etc.

I’m not sure that I’m understanding the multiple libraries comments and don’t understand why all works well when I use the BME680 example code.

Question Tags: ESP32 Help required please.
18 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 5 years ago

Hello John,

The multiple libraries message means that you might have installed the libraries in your computer globally under Computer > Documents > Arduino and also have installed the same library in your Arduino IDE folder.

You can ignore that warning message. The real problem is that you have the AsyncTCP library missing.

Can you install this library? https://github.com/me-no-dev/AsyncTCP

  • Or use this direct link to download the library: https://github.com/me-no-dev/AsyncTCP/archive/master.zip

I hope that helps.

Regards,

Rui

0 Vote Up Vote Down
John Beaty answered 5 years ago

Hello Rui,
Thank you for the quick reply.
I have re-downloaded the library and now still get the following error:
C:\Users\User A3U-1\Documents\Arduino\libraries\ESPAsyncTCP\src\SyncClient.cpp:25:24: fatal error: interrupts.h: No such file or directory
Multiple libraries were found for “WiFi.h”
compilation terminated.
Used: C:\Users\User A3U-1\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi
Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\libraries\WiFi
Not used: C:\Users\User A3U-1\Documents\Arduino\libraries\WiFiNINA
Multiple libraries were found for “Adafruit_Sensor.h”
Used: C:\Users\User A3U-1\Documents\Arduino\libraries\Adafruit_Sensor-master
Not used: C:\Users\User A3U-1\Documents\Arduino\libraries\Adafruit_Unified_Sensor-1.1.4
exit status 1
Error compiling for board DOIT ESP32 DEVKIT V1.

0 Vote Up Vote Down
John Beaty answered 5 years ago

Hi Rui,
Just tried again.
This error now:
C:\Users\User A3U-1\Documents\Arduino\libraries\ESPAsyncTCP\src\SyncClient.cpp:25:24: fatal error: interrupts.h: No such file or directory
Multiple libraries were found for “Adafruit_Sensor.h”
compilation terminated.
Used: C:\Users\User A3U-1\Documents\Arduino\libraries\Adafruit_Sensor-master
Not used: C:\Users\User A3U-1\Documents\Arduino\libraries\Adafruit_Unified_Sensor-1.1.4
Multiple libraries were found for “WiFi.h”
Used: C:\Users\User A3U-1\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi
Not used: C:\Users\User A3U-1\Documents\Arduino\libraries\WiFiNINA
Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\libraries\WiFi
exit status 1
Error compiling for board DOIT ESP32 DEVKIT V1.

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

Can you also try to install this library? It shouldn’t be necessary, but it looks like it’s requesting a file from the ESPAsyncTCP library: https://github.com/me-no-dev/ESPAsyncTCP

  • Download the library here: https://github.com/me-no-dev/ESPAsyncTCP/archive/master.zip

The error says:

C:\Users\User A3U-1\Documents\Arduino\libraries\ESPAsyncTCP\src\SyncClient.cpp:25:24: fatal error: interrupts.h: No such file or directory

So, it looks like it’s missing the interrupts.h file from ESPAsyncTCP library.

0 Vote Up Vote Down
John Beaty answered 5 years ago

Hi Rui,
I have downloaded the ESPAsyncTCP via github and re-named the master ESPAsyncTCP when I saved it to the Arduino library.  I am still getting the same error.
C:\Users\User A3U-1\Documents\Arduino\libraries\ESPAsyncTCP\src\SyncClient.cpp:25:24: fatal error: interrupts.h: No such file or directory
Multiple libraries were found for “Adafruit_Sensor.h”
compilation terminated.
Used: C:\Users\User A3U-1\Documents\Arduino\libraries\Adafruit_Sensor-master
Not used: C:\Users\User A3U-1\Documents\Arduino\libraries\Adafruit_Unified_Sensor-1.1.4
Multiple libraries were found for “WiFi.h”
Used: C:\Users\User A3U-1\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi
Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\libraries\WiFi
Not used: C:\Users\User A3U-1\Documents\Arduino\libraries\WiFiNINA
exit status 1
Error compiling for board DOIT ESP32 DEVKIT V1.

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

Unfortunately I don’t know exactly why that’s happening, installing those libraries should have fixed your issue.

  • Can you compile/upload a blank sketch to your ESP32?

I would recommend removing all previous libraries that are causing these issues. Can you delete all the folders and re-install the libraries required for the project?

  • Go to: C:\Users\User A3U-1\Documents\Arduino\libraries\
  • Remove: Adafruit_Sensor-master, Adafruit_Unified_Sensor-1.1.4, ESPAsyncTCP, AsyncTCP, ESPAsyncWebServer and any extra library that is required and it’s causing those error messages

Then, re-download the libraries and install them using the Arduino IDE. In Arduino IDE, go to the top menu “Sketch” > “Include library” > “Add .zip library”

0 Vote Up Vote Down
John Beaty answered 5 years ago

Hi Rui,
Unfortunately I’m still having problems.  I have deleted and reinstalled all libraries you suggested, but the same errors is occurring.  Still trouble with the ESPAsyncTCP.
The BME680 example test code compiles perfectly well and the results are displayed on the serial monitor.
Multiple libraries were found for “WiFi.h”
Used: C:\Users\User A3U-1\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi
Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\libraries\WiFi
In file included from C:\Users\User A3U-1\Documents\Arduino\Weather_Station_WindSpeed\weather_station_wifi02a_oct14a\weather_station_wifi02a_oct14a.ino:13:0:
C:\Users\User A3U-1\Documents\Arduino\libraries\ESPAsyncWebServer\src/ESPAsyncWebServer.h:33:22: fatal error: AsyncTCP.h: No such file or directory
compilation terminated.
exit status 1
Error compiling for board DOIT ESP32 DEVKIT V1.

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

Did you re-install the AsyncTCP library this time? Because it’s back to this error:

1\Documents\Arduino\libraries\ESPAsyncWebServer\src/ESPAsyncWebServer.h:33:22: fatal error: AsyncTCP.h: No such file or directory

Which means that the AsyncTCP library is missing…
I apologize for the back and forth, but Arduino IDE is so messy with libraries that it’s very hard to understand where’s the culprit…

0 Vote Up Vote Down
John Beaty answered 5 years ago

Hi Rui,
The problem goes on.  Still won’t compile:
C:\Users\User A3U-1\Documents\Arduino\libraries\ESPAsyncTCP\src\SyncClient.cpp:25:24: fatal error: interrupts.h: No such file or directory
Multiple libraries were found for “WiFi.h”
compilation terminated.
Used: C:\Users\User A3U-1\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi
Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\libraries\WiFi
Multiple libraries were found for “Adafruit_Sensor.h”
Used: C:\Users\User A3U-1\Documents\Arduino\libraries\Adafruit_Sensor-master
Not used: C:\Users\User A3U-1\Documents\Arduino\libraries\Adafruit_Unified_Sensor-1.1.4
exit status 1
Error compiling for board DOIT ESP32 DEVKIT V1.
Don’t know where interrupts.h library is?
Confused, John.

0 Vote Up Vote Down
John Beaty answered 5 years ago

Good Evening Rui,
I’m pleased to let you know that all is now well.  I seem to have made some errors in the way I was saving the libraries to the Arduino IDE.  I got a clue from the latest blog you sent out this evening.  I finished up with far too many included libraries in the script.  By deleting most of them the problem was solved. This has been a great learning curve.
Just a question. Is there a better IDE to use than the Arduino IDE?
Thank you for your patience and help.
Regards,
John

0 Vote Up Vote Down
Steve Mercer answered 5 years ago

Check out PlatformIO.

0 Vote Up Vote Down
John Beaty answered 5 years ago

Thank you Steve.  Will check it out.

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

Hello John, I definitely recommend using VS Code and PlatformIO IDE as Steve suggested. We wrote an in-depth guide on that topic:

  • Getting Started with VS Code and PlatformIO IDE for ESP32 and ESP8266 (Windows, Mac OS X, Linux Ubuntu)

I think if you’re just getting started, it’s easier to use Arduino IDE, but after you make your first projects you can definitely upgrade to VS Code

0 Vote Up Vote Down
John Beaty answered 5 years ago

Hi Rui, 
Thanks for that, I will get into that Tutorial. 
I am looking to add two more pieces of code into the bme680 Web server. One for the 1733 Adafruit Anemometer and one for the ds18b20 temp sensor. I have started to try to understand the JS for the Web page layout in order to add two more cards. Is there a tutorial on this?
Thanks for all your help. John. 

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

Hello John, at the moment we don’t have any eBook or course on HTML… But we are working on it, it’s almost ready and it should be published in 2-4 weeks.

I recommend using the w3schools website:

  • w3schools.com/html/default.asp

Which cover a bit of HTML, but to add more cards you’ll always have to duplicate the HTML section with each element using a unique ID and send the readings in the loop() section.

We don’t have any Anemometer guides right now, but we also received one this month, so we’ll be working on a new guide in the next couple of weeks.

0 Vote Up Vote Down
John Beaty answered 5 years ago

That’s brilliant Rui. I have added two extra cards for wind speed and soil temperature and I now  just need to sort out the readings etc. I have the 1733 anemometer working with an Arduino Mega2560 and also the ds18b20 sensor with the same.
Looking forward to the new tutorials. 
John. 

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

I’ve bought that exact same anenometer, but I haven’t had time to try it, but I’ll definitely post a guide for the ESP32 using it. The code that runs in the Arduino should be very similar for the ESP, but I haven’t tried anything.
Regards,
Rui

0 Vote Up Vote Down
John Beaty answered 5 years ago

Great. Look forward to it. 

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

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 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.