using code block from https://esphome.io/components/sensor/bme68x_bsec2/
# Minimal example configuration with common sensors
bme68x_bsec2_i2c:
address: 0x76
model: bme688
operating_age: 28d
sample_rate: LP
supply_voltage: 3.3V
========================
was working just fine for months, but now, post 2026.2 – get compile error…
INFO ESPHome 2026.2.0
INFO Reading configuration /config/esphome/myEspHomeProject.yaml...
WARNING OTA rollback requires safe_mode, disabling rollback support
INFO Generating C++ source...
INFO Setting CONFIG_LWIP_MAX_SOCKETS to 14 (registered: api=4, captive_portal=4, mdns=2, ota=1, web_server=3)
INFO Deleting /data/build/myEspHomeProject/.pioenvs/myEspHomeProject/CMakeCache.txt
INFO Integrations changed, cleaning cmake cache...
INFO Compiling app... Build path: /data/build/myEspHomeProject
Processing myEspHomeProject (board: esp32-c3-devkitm-1; framework: arduino, espidf; platform: https://github.com/pioarduino/platform-espressif32/releases/download/55.03.37/platform-espressif32.zip)
--------------------------------------------------------------------------------
Removing unused dependencies...
Library Manager: Installing git+https://github.com/boschsensortec/Bosch-BME68x-Library
INFO Installing git+https://github.com/boschsensortec/Bosch-BME68x-Library
git version 2.39.5
Cloning into '/data/cache/platformio/cache/tmp/pkg-installing-sa5fnamh'...
Library Manager: BME68x Sensor [email protected]+sha.4f37df6 has been installed!
INFO BME68x Sensor [email protected]+sha.4f37df6 has been installed!
Library Manager: Installing git+https://github.com/boschsensortec/Bosch-BSEC2-Library.git#1.10.2610
INFO Installing git+https://github.com/boschsensortec/Bosch-BSEC2-Library.git#1.10.2610
git version 2.39.5
Cloning into '/data/cache/platformio/cache/tmp/pkg-installing-e5omcrrh'...
Library Manager: BSEC2 Software [email protected]+sha.0dac6ea has been installed!
INFO BSEC2 Software [email protected]+sha.0dac6ea has been installed!
HARDWARE: ESP32C3 160MHz, 320KB RAM, 4MB Flash
- contrib-piohome @ 3.4.4
- framework-arduinoespressif32 @ 3.3.7
- framework-arduinoespressif32-libs @ 5.5.2
- framework-espidf @ 3.50502.0 (5.5.2)
- tool-cmake @ 4.0.3
- tool-esp-rom-elfs @ 2024.10.11
- tool-esptoolpy @ 5.1.2
- tool-ninja @ 1.13.1
- tool-scons @ 4.40801.0 (4.8.1)
- toolchain-riscv32-esp @ 14.2.0+20251107
Reading CMake configuration...
Generating assembly for certificate bundle...
Dependency Graph
|-- noise-c @ 0.1.10
|-- SPI @ 3.3.7
|-- BME68x Sensor library @ 1.3.40408+sha.4f37df6
|-- bsec2 @ 1.10.2610+sha.0dac6ea
Compiling .pioenvs/myEspHomeProject/src/esphome/components/amg8833/amg8833.cpp.o
Compiling .pioenvs/myEspHomeProject/src/esphome/components/api/api_connection.cpp.o
Compiling .pioenvs/myEspHomeProject/src/esphome/components/api/api_frame_helper.cpp.o
Compiling .pioenvs/myEspHomeProject/src/esphome/components/api/api_frame_helper_noise.cpp.o
Compiling .pioenvs/myEspHomeProject/src/esphome/components/api/api_pb2.cpp.o
Compiling .pioenvs/myEspHomeProject/src/esphome/components/api/api_pb2_service.cpp.o
Compiling .pioenvs/myEspHomeProject/src/esphome/components/api/api_server.cpp.o
Compiling .pioenvs/myEspHomeProject/src/esphome/components/api/list_entities.cpp.o
Compiling .pioenvs/myEspHomeProject/src/esphome/components/api/proto.cpp.o
Compiling .pioenvs/myEspHomeProject/src/esphome/components/api/subscribe_state.cpp.o
Compiling .pioenvs/myEspHomeProject/src/esphome/components/binary_sensor/automation.cpp.o
Compiling .pioenvs/myEspHomeProject/src/esphome/components/binary_sensor/binary_sensor.cpp.o
Compiling .pioenvs/myEspHomeProject/src/esphome/components/binary_sensor/filter.cpp.o
**Compiling .pioenvs/myEspHomeProject/src/esphome/components/bme68x_bsec2/bme68x_bsec2.cpp.o**
**In file included from src/esphome/components/bme68x_bsec2/bme68x_bsec2.h:20,**
** from src/esphome/components/bme68x_bsec2/bme68x_bsec2.cpp:7:**
**.piolibdeps/myEspHomeProject/BSEC2 Software Library/src/bsec2.h:45:10: fatal error: Wire.h: No such file or directory**
********************************************************************
* Looking for Wire.h dependency? Check our library registry!
*
* CLI > platformio lib search "header:Wire.h"
* Web > https://registry.platformio.org/search?q=header:%1B%5Bm%1B%5BKWire.h
*
********************************************************************
45 | #include "Wire.h"
| ^~~~~~~~
compilation terminated.
*** [.pioenvs/myEspHomeProject/src/esphome/components/bme68x_bsec2/bme68x_bsec2.cpp.o] Error 1
========================= [FAILED] Took 24.32 seconds =========================
Any pointers ?
the library on Bosh github hasn’t changed in the recent months (GitHub - boschsensortec/Bosch-BSEC2-Library: Arduino library to simplify using Bosch Sensortec's BSEC2 library)