diff --git a/content/posts/esphome-dht-sensor/index.md b/content/posts/esphome-dht-sensor/index.md index f380255..c780eb0 100644 --- a/content/posts/esphome-dht-sensor/index.md +++ b/content/posts/esphome-dht-sensor/index.md @@ -2,7 +2,7 @@ title: HomeAssistant Temperature & Humidity Sensor with ESPHome date: 2020-08-12 tags: [self-hosting] -image: resource:ha-dashboard.png +image: resource:sensor-circuit.jpg --- The majority of England (where I live) is being hit by [quite a heatwave](https://www.dailymail.co.uk/news/article-8610963/UK-weather-Britain-swelter-TEN-day-heatwave.html). It's hot here, like really hot! @@ -51,6 +51,8 @@ The first step is to identify the right pins on the DHT sensor. There are 3 pins The pins labelled on the board are not necessarily all accessible to ESPHome, nor are the numbers correct. Be sure to check the [documentation](https://esphome.io/devices/nodemcu_esp8266.html) for the specific board you're using, and connect the pins correctly. In my case, I connected the data line to the pin labelled `D1`. +![My NodeMCU with connected DHT11](sensor-circuit.jpg) + ### Create firmware Next we need to write the config file which will be turned into our firmware. ESPHome configuration is just `yaml` files, which makes editing and updating simple. The web UI contains a helpful wizard to create the configuration files. diff --git a/content/posts/esphome-dht-sensor/sensor-circuit.jpg b/content/posts/esphome-dht-sensor/sensor-circuit.jpg new file mode 100644 index 0000000..f4fb9d3 Binary files /dev/null and b/content/posts/esphome-dht-sensor/sensor-circuit.jpg differ