Skip to content
Iain Prior edited this page Mar 25, 2024 · 1 revision

The dht11 module is designed to read the temperature and relative humidity values from a DHT11 sensor. It sends these values as telemetry.

UI

The UI looks like this:

Temperature UI from main screen

The UI updates with fresh telemetry each time the telemetry data is refreshed.

Hardware / Pinout

The hardware I used for this one is a shield I soldered myself, based on the pinout from this module: https://hobbycomponents.com/shields/868-wemos-d1-mini-dht-temphum-shield

The submodule I used is the DHT11 sensor from here: https://www.velleman.eu/products/view/?id=435536

The pinout is as follows:

  • GND -> GND
  • VCC -> 3.3V
  • DOUT -> GPIO 16 (D4 on D1 Mini)

Surely not my best soldering! But here is an image of it anyway :)

alt text alt text

I used a S2 Mini as the main controller: https://www.wemos.cc/en/latest/s2/s2_mini.html

Configuration

At the moment there are no config options for this module. All the pins are hardcoded.

Telemetry provided

The main point of this module is to provide telemetry about what the temperature and humidity. It also provides a time indicator as to when the readings were last updated. It provides these as telemetry on each cycle. It will not provide any telemetry if it has not been able to read the sensor (yet).

telemetry = {
    "temperature/dht11" : self.currentT,
    "humidity/dht11" : self.currentH,
    "tempReadAt": self.lastConvert
}

Telemetry consumed

This module consumes no telemetry from other modules.

Commands provided

This module does not provide any commands to other modules. It only provides telemetry about the internal state.

Commands consumed

This module does not consume any commands from other modules.

Clone this wiki locally