{"id":7,"date":"2025-06-01T23:17:53","date_gmt":"2025-06-01T21:17:53","guid":{"rendered":"https:\/\/blog.bratfisch.net\/?p=7"},"modified":"2025-07-07T22:55:40","modified_gmt":"2025-07-07T20:55:40","slug":"a-beelogger-on-esp32-basis-part-2-basic-sensors","status":"publish","type":"post","link":"https:\/\/blog.bratfisch.net\/index.php\/2025\/06\/01\/a-beelogger-on-esp32-basis-part-2-basic-sensors\/","title":{"rendered":"A beelogger on ESP32 basis, part 2: Test setup: The basic sensors"},"content":{"rendered":"\n<p>I&#8217;m still unsure which sensors to use in production, so I started experimenting:<\/p>\n\n\n\n<p>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.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<div class=\"wp-block-group has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<figure class=\"wp-block-gallery has-nested-images columns-4 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"960\" height=\"960\" data-id=\"111\" src=\"https:\/\/blog.bratfisch.net\/wp-content\/uploads\/2025\/06\/image-3.png\" alt=\"\" class=\"wp-image-111\" srcset=\"https:\/\/blog.bratfisch.net\/wp-content\/uploads\/2025\/06\/image-3.png 960w, https:\/\/blog.bratfisch.net\/wp-content\/uploads\/2025\/06\/image-3-300x300.png 300w, https:\/\/blog.bratfisch.net\/wp-content\/uploads\/2025\/06\/image-3-150x150.png 150w, https:\/\/blog.bratfisch.net\/wp-content\/uploads\/2025\/06\/image-3-768x768.png 768w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><figcaption class=\"wp-element-caption\">BH1750<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"900\" data-id=\"165\" src=\"https:\/\/blog.bratfisch.net\/wp-content\/uploads\/2025\/06\/image-9.png\" alt=\"\" class=\"wp-image-165\" srcset=\"https:\/\/blog.bratfisch.net\/wp-content\/uploads\/2025\/06\/image-9.png 900w, https:\/\/blog.bratfisch.net\/wp-content\/uploads\/2025\/06\/image-9-300x300.png 300w, https:\/\/blog.bratfisch.net\/wp-content\/uploads\/2025\/06\/image-9-150x150.png 150w, https:\/\/blog.bratfisch.net\/wp-content\/uploads\/2025\/06\/image-9-768x768.png 768w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><figcaption class=\"wp-element-caption\">BH1750<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"300\" data-id=\"110\" src=\"https:\/\/blog.bratfisch.net\/wp-content\/uploads\/2025\/06\/image-2.png\" alt=\"\" class=\"wp-image-110\" srcset=\"https:\/\/blog.bratfisch.net\/wp-content\/uploads\/2025\/06\/image-2.png 300w, https:\/\/blog.bratfisch.net\/wp-content\/uploads\/2025\/06\/image-2-150x150.png 150w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><figcaption class=\"wp-element-caption\"><strong>BMP085<\/strong><\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"768\" data-id=\"127\" src=\"https:\/\/blog.bratfisch.net\/wp-content\/uploads\/2025\/06\/image-6.png\" alt=\"\" class=\"wp-image-127\" srcset=\"https:\/\/blog.bratfisch.net\/wp-content\/uploads\/2025\/06\/image-6.png 768w, https:\/\/blog.bratfisch.net\/wp-content\/uploads\/2025\/06\/image-6-300x300.png 300w, https:\/\/blog.bratfisch.net\/wp-content\/uploads\/2025\/06\/image-6-150x150.png 150w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><figcaption class=\"wp-element-caption\">DS18B20<\/figcaption><\/figure>\n<\/figure>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<p><br><\/p>\n\n\n\n<p><br>In my test-setup, I connected it like this:<br><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"473\" src=\"https:\/\/blog.bratfisch.net\/wp-content\/uploads\/2025\/06\/beelogger-sensors-1024x473.png\" alt=\"\" class=\"wp-image-286\" style=\"width:auto;height:250px\" srcset=\"https:\/\/blog.bratfisch.net\/wp-content\/uploads\/2025\/06\/beelogger-sensors-1024x473.png 1024w, https:\/\/blog.bratfisch.net\/wp-content\/uploads\/2025\/06\/beelogger-sensors-300x139.png 300w, https:\/\/blog.bratfisch.net\/wp-content\/uploads\/2025\/06\/beelogger-sensors-768x355.png 768w, https:\/\/blog.bratfisch.net\/wp-content\/uploads\/2025\/06\/beelogger-sensors-1536x710.png 1536w, https:\/\/blog.bratfisch.net\/wp-content\/uploads\/2025\/06\/beelogger-sensors.png 1629w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><br><\/p>\n\n\n\n<p>The code I used for the sensors:<br><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>substitutions:\n  update_interval: 5s\n  \ni2c:\n  sda: GPIO35\n  scl: GPIO36\n  scan: true\n\none_wire:\n  - platform: gpio\n    pin: GPIO04\n\nsensor:\n  - platform: htu21d\n    model: SI7021\n    temperature:\n      name: \"SI7021 Temperature\"\n    humidity:\n      name: \"SI7021 Humidity\"\n    heater:\n      name: \"SI7021 Heater\"\n    address: 0x40\n    update_interval: ${update_interval}\n  - platform: bmp085\n    temperature:\n      name: \"BMP085 Temperature\"\n    pressure:\n      name: \"BMP085 Pressure\"\n    address: 0x77\n    update_interval: ${update_interval}\n  - platform: bme280_i2c\n    temperature:\n      name: \"BME280 Temperature\"\n    pressure:\n      name: \"BME280 Pressure\"\n    humidity:\n      name: \"BME280 Humidity\"\n    address: 0x76\n    update_interval: ${update_interval}\n  - platform: dallas_temp\n    name: \"DS18B20 Temperature 1\"\n    address: 0xcb000000513fb228\n    update_interval: ${update_interval}\n  - platform: dallas_temp\n    name: \"DS18B20 Temperature 2\"\n    address: 0x6f000000bcc72128\n    update_interval: ${update_interval}\n  - platform: bh1750\n    name: \"BH1750 Illuminance\"\n    address: 0x23\n    update_interval: ${update_interval}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3,4,5],"class_list":["post-7","post","type-post","status-publish","format-standard","hentry","category-allgemein","tag-beelogger","tag-esp32","tag-esphome"],"_links":{"self":[{"href":"https:\/\/blog.bratfisch.net\/index.php\/wp-json\/wp\/v2\/posts\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bratfisch.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bratfisch.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bratfisch.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bratfisch.net\/index.php\/wp-json\/wp\/v2\/comments?post=7"}],"version-history":[{"count":48,"href":"https:\/\/blog.bratfisch.net\/index.php\/wp-json\/wp\/v2\/posts\/7\/revisions"}],"predecessor-version":[{"id":906,"href":"https:\/\/blog.bratfisch.net\/index.php\/wp-json\/wp\/v2\/posts\/7\/revisions\/906"}],"wp:attachment":[{"href":"https:\/\/blog.bratfisch.net\/index.php\/wp-json\/wp\/v2\/media?parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bratfisch.net\/index.php\/wp-json\/wp\/v2\/categories?post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bratfisch.net\/index.php\/wp-json\/wp\/v2\/tags?post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}