Temperature & humidity sensor Thing using ESP8266 + MQTT + SHT30. Built with PlatformIO and Homie
This project specifically uses:
You probably want to be using a dual base to avoid heat interference from the ESP8266 itself.
Note: Wemos' SHT30 v1.0.0 has a I2C address of
0x45
, whereas the factory setting of the SHT30 is0x44
. If you have the shield and need to use0x44
, solder these two pads together:I did not do this.
This firmware should work with any D1 Mini. The D1 Mini Pro has 16MB of flash, which is more than you need to run this.
This firmware may also work with the SHT30 Shield v2.x, but I haven't tried that shield yet.
- Wire up hardware
- Get PlatformIO
- Clone this repo
- (Optional) Create
data/homie/config.json
(see Homie JSON config docs) and use PlatformIO to upload thedata
dir to SPIFFS - Use PlatformIO to flash device
- Follow Homie's setup instructions
- Wemos' provided library (as of March 2017) is hinky and not recommended.
- This firmware uses ClosedCube's library instead.
- I'm not sure clock stretching works very well on an ESP8266, so we're using the SHT30's "periodic" mode.
Copyright © 2017-2019 Christopher Hiller. Licensed [Apache-2.0].