User Tools

Site Tools


This is an old revision of the document!

Add temperature and humidity sensor DHT11 in Domoticz


In previous post, I have shown how to record temperature from Lexibook ASM30 sensor with Arduino. Here, we will use the same hardware platform for DHT11 sensor.

Needed hardware

  • Arduino Uno R3 board (available on Amazon) with USB cable
  • DHT11 temperature and humidity sensor. I use a 3 pin version found on Amazon.


It is very simple. Just connect the DHT11 sensor like this:

  • G pin to Arduino pin GND
  • V pin to Arduino pin 5V
  • S pin to Arduino DIGITAL pin 2

Then I suppose you have the Arduino connected with a USB cable to a PC running the Arduino development environment.

The Arduino sketch

The first thing to do is to test the assembly with the DHT11 library SimpleDHT. It can be installed easily through library manager in Arduino environment.

Once installed, just choose the SimpleDHT example, export it on the Arduino and check the temperature and humidity returned on serial monitor.

It shoud display something like that:

Sample DHT11...
Sample OK: 18 *C, 37 %
Sample DHT11...
Sample OK: 18 *C, 37 %
Sample DHT11...
Sample OK: 18 *C, 37 %

Next Step

  • Add DHT11 temperature and humidity sensor in Domoticz using a respberry pi… (coming)

Share this page:

add_temperature_and_humidity_sensor_dht11_in_domoticz.1478886189.txt.gz · Last modified: 2016/11/11 18:43 by sgripon