BME280 Digital humidity, pressure and temperature sensor
Overview
Name | BME280 |
Manufacturer | Bosch |
Adafruit board | Adafruit BME280 I2C |
Datasheet | bst-bme280-ds002.pdf |
ESPHome component | bme280 |
Interface | |
I²C address | 0x77 |
Supply voltage | Sensor: |
Pinout
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