I’ve deployed several these things in and around my house:
The dual base is necessary because the heat from the ESP8266 will distort the temperature readings on the DHT22 if too close together.
For the software, I’m using PlatformIO with the following libraries:
- Adafruit-DHT (#19)
- ArduinoJson (#64)
- PubSubClient (#89)
- Losant (#277)
Each one has a custom “Bonjour” domain name on my local network;
bar.local, and each has its own device ID.
PRO TIP: If deployed outside, wrap everything in clingfilm except the DHT22 itself. Mine recently survived a direct hit from a hose–the “humidity” readings were off for a couple hours–but still works great.