r/Esphome • • 12d ago

bme280 sensor stops updating

I have a pico running esphome that has an adc door sensor attached. I recently added a bme280 sensor to it as well and it works for a period and then stops updating. Looking at the logs remotely don't show any errors so I'm at a bit of a loss trying to troubleshoot. Free heap is ~132K so not likely an out of memory issue. Doing a reset through HA is enough to get the device reporting in again - so not even a hard power off. Its currently running the latest esphome version but I think it also happened on 2026.10 as well.

relevant config if it helps

i2c:
  sda: GPIO8
  scl: GPIO9
  scan: true

sensor:
  - platform: bmp280_i2c
    temperature:
      name: "Temperature"
      oversampling: 16x
    pressure:
      name: "Pressure"
    address: 0x77
    update_interval: 30s  
  - platform: aht10
    address: 0x38
    variant: AHT20
    humidity:
      id: humidity
      name: "Humidity"
    update_interval: 30s
  - platform: adc
    id: fridge_door
    pin: GPIO26
    name: "Door Sensor"
    update_interval: 1s
    accuracy_decimals: 0
    internal: True
3 Upvotes

7 comments sorted by

2

u/Financial_Vast_6340 12d ago

Maybe lower the i2c frequency a bit to like 100 and enable very verbose?

1

u/InvaderGlorch 12d ago

Looks like the default is 50khz so I've lowered it to 10 but then my temp readings were almost 200C. Running at 100kHz now and added the spammy logging. thanks!

1

u/wulff-tech 8d ago

I'd add an 'uptime' sensor and a 'wifi_signal' one so you can tell if the pico is actually dying or just the sensors. If uptime keeps going while the temperature sits there, its the i2c bus, one device holding SDA low will take the other one with it. If uptime stops as well then its the board or the wifi.

Your config also says 'bmp280_i2c', which is the temp and pressure chip with no humidity. If you bought it as a BME280 theres a good chance its a BMP280 with the wrong sticker on it (seems somewhat common apparently). Would explain why you needed the AHT20 as well.

If it is the bus, try commenting out the AHT20 for a day and see which one is the problem.

1

u/InvaderGlorch 8d ago

Thanks, been meaning to update this and life got in the way. Turning off the i2c bus scan seems to have helped and it was definitely timeouts on the the i2c bus that was the problem. I added a restart on timeout as a work around for now as well. I suspect it ultimately might be a wiring issue

1

u/wulff-tech 6d ago

right makes sesnse, a flakish bus can hang the whole thing. if its wiring related, id look at the pullups first. are both sensors on the one set of wires?

1

u/InvaderGlorch 6d ago

No, but my soldering skills are shit so its probably that 😄

1

u/InvaderGlorch 8d ago

oh, and yeah, the sensor as listed at AHT20+BMP280. I don't know why i put it down as a BME280 in my post..