BME280 Digital humidity, pressure and temperature sensor

Overview

 
NameBME280
ManufacturerBosch
Adafruit boardAdafruit BME280 I2C
Datasheetbst-bme280-ds002.pdf
ESPHome componentbme280
Interface
I²C address0x77
Supply voltageSensor:

Pinout

BME280

Pin
Supply voltage (with voltage regulator: )
Ground
I²C SDA
I²C SCL

Some breakout boards have a voltage regulator that handles but the sensor itself tolerates a maximum of 1.

ESPHome config

Set up an an I²C bus first.

i2c:
  - id: i2c_bme280
    sda: ${gpio_sda}
    scl: ${gpio_scl}

Configure the bme280_i2c platform:

sensor:
  - platform: bme280_i2c
    address: 0x76
    i2c_id: "i2c_bme280"
    temperature:
      id: "sensor_air_temp"
      name: "${hostname} Air temperature"
      device_class: temperature
      state_class: measurement
    pressure:
      id: "sensor_pressure"
      name: "${hostname} Pressure"
      device_class: temperature
      state_class: measurement
    humidity:
      id: "sensor_humidity"
      name: "${hostname} Humidity"
      device_class: humidity
      state_class: measurement

References