Published On Nov 18, 2023
BME280 Temperature and Humidity Sensor
Parts Links
D1 Mini ESP32: https://www.aliexpress.us/item/225183...
BME280: https://www.aliexpress.us/item/325680...
Small Project Box: https://www.amazon.com/gp/product/B0B...
Parts List: https://www.canva.com/design/DAF0izat...
Wiring Diagram: https://www.canva.com/design/DAF0im1u...
ESPHome Code
i2c:
sda: 21
scl: 22
scan: true
id: bus_a
sensor:
platform: bme280_i2c
temperature:
name: "WorkBench Temperature"
oversampling: 16x
filters:
lambda: return x * (9.0/5.0) + 32.0;
unit_of_measurement: "°F"
humidity:
name: "WorkBench Humidity"
filters:
lambda: return x + 6;
address: 0x76
update_interval: 5s
Corrections to the code if needed
To make adjustments to the temperature where you see this line of code - lambda: return x * (9.0/5.0) + 32.0; change the 32.0 to whatever adjustment you need to make it correct. Make sure to add the decimal point and a value after otherwise the lamda funtion might not work correctly.
To make adjustments to the humidity where you see this line of code - lambda: return x + 6; change the 6 to whatever adjustment you need to make it correct, change the + to a - if needing to decrease the value.