Using a NodeMCU and DHT-22 temperature sensor I was able to leverage the ESPHome project to make some temperature sensors to keep an eye on garage freezer temperatures.
The wiring of the DHT-22 from left-right corresponds to the following on the NodeMCU: VIN, Gnd, D2.
A basic configuration for the sensor is:
esphome: name: garage_freezer1 platform: ESP8266 board: nodemcu wifi: ssid: "SSID here" password: "WIFI password here" # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "Garage Freezer1 Fallback Hotspot" password: "HotSpot WIFI password here" captive_portal: # Enable logging logger: # Enable Home Assistant API api: password: "HomeAssistant API password here" ota: password: "OTA Updates password here" sensor: - platform: dht pin: D2 temperature: name: "Garage Freezer 1 Temperature" humidity: name: "Garage Freezer 1 Humidity" update_interval: 60s model: DHT22
The updates of NodeMCU can either be done via a Docker container or command line. Instructions are available here.