I’m still unsure which sensors to use in production, so I started experimenting:
I connected a bmp085, a waterproof bh1750, a Si7021 and a bme280 via I2C. Two DS18B20s that will be built in in the lid of the hive and into its center are connected via 1-wire.




In my test-setup, I connected it like this:

The code I used for the sensors:
substitutions:
update_interval: 5s
i2c:
sda: GPIO35
scl: GPIO36
scan: true
one_wire:
- platform: gpio
pin: GPIO04
sensor:
- platform: htu21d
model: SI7021
temperature:
name: "SI7021 Temperature"
humidity:
name: "SI7021 Humidity"
heater:
name: "SI7021 Heater"
address: 0x40
update_interval: ${update_interval}
- platform: bmp085
temperature:
name: "BMP085 Temperature"
pressure:
name: "BMP085 Pressure"
address: 0x77
update_interval: ${update_interval}
- platform: bme280_i2c
temperature:
name: "BME280 Temperature"
pressure:
name: "BME280 Pressure"
humidity:
name: "BME280 Humidity"
address: 0x76
update_interval: ${update_interval}
- platform: dallas_temp
name: "DS18B20 Temperature 1"
address: 0xcb000000513fb228
update_interval: ${update_interval}
- platform: dallas_temp
name: "DS18B20 Temperature 2"
address: 0x6f000000bcc72128
update_interval: ${update_interval}
- platform: bh1750
name: "BH1750 Illuminance"
address: 0x23
update_interval: ${update_interval}
Leave a Reply