Comments on: ESP32 Web Server with BME680 – Weather Station (Arduino IDE) https://randomnerdtutorials.com/esp32-bme680-web-server-arduino/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Fri, 14 Mar 2025 16:46:47 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Olivia Fan https://randomnerdtutorials.com/esp32-bme680-web-server-arduino/#comment-962931 Mon, 30 Sep 2024 01:18:05 +0000 https://randomnerdtutorials.com/?p=98196#comment-962931 Hello
I followed your logic wrote a dimple code to test my BME680. It’s very odd that nothing showing up in the serial monitor. I have tested many things, including different BME680, different ESP32, I2C scanner, rsisters (5.1k and 10k). Nothing worked. With the I2C scanner, it can identify device at 76. What could be wrong? Thanks a lot.
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BME680.h>

Adafruit_BME680 bme; // I2C

void setup() {
Serial.begin(115200);
delay(2000); // Small delay to ensure stable serial communication
Serial.println(“Starting BME680 test…”);

// Initialize the BME680 sensor
if (!bme.begin(0x76)) { // Try 0x76 address first
Serial.println(“Could not find a valid BME680 sensor, check wiring!”);
while (1);
}

Serial.println(“BME680 initialization successful!”);
}

void loop() {
// Perform a sensor reading
if (!bme.performReading()) {
Serial.println(“Failed to perform reading :(“);
return;
}

// Display sensor readings
Serial.print(“Temperature = “);
Serial.print(bme.temperature);
Serial.println(” *C”);

Serial.print(“Pressure = “);
Serial.print(bme.pressure / 100.0);
Serial.println(” hPa”);

Serial.print(“Humidity = “);
Serial.print(bme.humidity);
Serial.println(” %”);

Serial.print(“Gas = “);
Serial.print(bme.gas_resistance / 1000.0);
Serial.println(” KOhms”);

delay(2000); // Delay between readings
}

]]>
By: Amir https://randomnerdtutorials.com/esp32-bme680-web-server-arduino/#comment-919186 Wed, 29 May 2024 06:50:55 +0000 https://randomnerdtutorials.com/?p=98196#comment-919186 Hi,
There is a new Drop-In Replacement BME688, could you update this tutorial?

and can you combine this tutorial with the Weather Station PCB, or simply add a display (CYD?) so that you can see the data both on Browser and on device itself as stand alone weather station.

]]>
By: Giovanni https://randomnerdtutorials.com/esp32-bme680-web-server-arduino/#comment-884364 Tue, 16 Jan 2024 15:08:13 +0000 https://randomnerdtutorials.com/?p=98196#comment-884364 Hello… good afternoon
This tutorials is OK: the sketch compiled ok but i have this problem:
i use windows 11 with Firefox but the html page is “NOT VISIBLE” with the message: “Il server 192.168.0.6 sta impiegando troppo tempo a rispondere.” But the sketch is running: the value BME680 are writted on serial monitor.
With cellular RED_MI_NOTE_11 identical message.
Microsoft Edge: 192.168.0.6 ha richiesto troppo tempo per rispondere
With cellular TCL_20 is “OK !!!! and the HTML page is OK.
With cellular LG K9 is “OK” !!! and the HTML page is ok.
WHY ??? Sketch compiled with arduino 1.8.19 is ok.
Pardon my little english.
Best regards: wait for respons. Thank you
G.Valenti Trento (Italy)

]]>
By: Zoki https://randomnerdtutorials.com/esp32-bme680-web-server-arduino/#comment-877035 Sun, 10 Dec 2023 13:11:56 +0000 https://randomnerdtutorials.com/?p=98196#comment-877035 In reply to Sara Santos.

Hi,
There is error with % in printf format. To printf %, you need to put %% in printf format.
BR
Zoki

]]>
By: Guy https://randomnerdtutorials.com/esp32-bme680-web-server-arduino/#comment-869588 Thu, 02 Nov 2023 18:48:34 +0000 https://randomnerdtutorials.com/?p=98196#comment-869588 Hi, If we want to change the color of the temperature box depending on a certain condition, for example if the temperature is higher than 30°C, the color changes to RED. Do we have to to this is the script file ? And can you give a hint on the code ? Thanks !

]]>
By: Fabrício https://randomnerdtutorials.com/esp32-bme680-web-server-arduino/#comment-844964 Mon, 03 Jul 2023 23:42:06 +0000 https://randomnerdtutorials.com/?p=98196#comment-844964 Goodnight! Is it possible to create an alarm with the cards? For example: I want the gas sensor card to change the background color (red) and font color (white) when it is greater than a certain value and blink while the sensor value is above this value. Can you show me how I can do this?

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-bme680-web-server-arduino/#comment-842111 Wed, 21 Jun 2023 10:35:07 +0000 https://randomnerdtutorials.com/?p=98196#comment-842111 In reply to wing.

Hi.
Yes. You can use the adafruit libraries for the generic bme680. Ours is not from adafruit.
Regards,
Sara

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-bme680-web-server-arduino/#comment-842110 Wed, 21 Jun 2023 10:34:29 +0000 https://randomnerdtutorials.com/?p=98196#comment-842110 In reply to Rogelio García Márquez.

Hi.
Make sure you copy the whole code.
It seems you’re missing a } at the end of the code.
Regards,
Sara

]]>
By: wing https://randomnerdtutorials.com/esp32-bme680-web-server-arduino/#comment-841640 Sun, 18 Jun 2023 10:43:22 +0000 https://randomnerdtutorials.com/?p=98196#comment-841640 I wonder if I can use adafruit bme680 libraries since my chip is generic bme680 and the program has no adafruit bme680 identified. in this case, is there any other libraries for bme680 that I can use?

]]>
By: Rogelio García Márquez https://randomnerdtutorials.com/esp32-bme680-web-server-arduino/#comment-841632 Sun, 18 Jun 2023 10:03:31 +0000 https://randomnerdtutorials.com/?p=98196#comment-841632 When compiling the program, the following two errors occur:
C:\Users\rogga\Documents\Arduino\sketch_jun17a_ESP32_BME680_Web-Server\sketch_jun17a_ESP32_BME680_Web-Server.ino: In function ‘void loop()’:
C:\Users\rogga\Documents\Arduino\sketch_jun17a_ESP32_BME680_Web-Server\sketch_jun17a_ESP32_BME680_Web-Server.ino:212:19: error: unknown conversion type character ‘\x0a’ in format [-Werror=format=]
Serial.printf(“Humidity = %.2f % \n”, humidity);
^~~~~~~~~~~~~~~~~~~~~~
C:\Users\rogga\Documents\Arduino\sketch_jun17a_ESP32_BME680_Web-Server\sketch_jun17a_ESP32_BME680_Web-Server.ino: In function ‘String processor(const String&)’:
C:\Users\rogga\Documents\Arduino\sketch_jun17a_ESP32_BME680_Web-Server\sketch_jun17a_ESP32_BME680_Web-Server.ino:77:1: error: control reaches end of non-void function [-Werror=return-type]
}

]]>