How to show DHT11 data on QIoT Dashboard

DHT 11

The DHT11 is a basic, ultra low-cost digital temperature and humidity sensor. This tutorial will show how to display – DHT11 data on QIoT Dashboard (using a Seeeduino with W5500 Ethernet Shield).
DHT 11

1.  “IoT Applications” →  “Add IoT applications”
1

2.  In “Create a New IoT application”:

  • Enter a name for your IoT Application.
  • The Rule name and Dashboard name will be automatically generated based on the IoT Application Name.
  • Click “Create”.

2

3. “Add Thing”:

  • Enter a name for the Thing (in this sample: “Thingname”)
  • “Custom” in “Thing Category”
  • Click “Add”

3

4. Click the “Thing Resources”button, and enter “Thing Resource”
4

5. In “Add Thing Resource”:

  • Enter a name for the resource (in this example: “myTemperature”)
  • Enter a resource ID (The resource ID is used to create a topic in the QIoT broker. This ID should be unique for the device and no duplicates should be allowed for the same device)
  • Click “Add”

5

6. Click “Connect to device”, and “in Thing Information” choose “MQTT”, click “Next”, and click “download JSON file”
6-1 6-2

7. In the “Rule” window to set the “MQTT Message”:

  • Click “MQTT Message In”
  • Uncheck “Use custom topic”
  • Choose the Thing “Thingname”
  • Click “Add”, and choose “myTemperature” in “Resources”
  • Click “Done”, and “Save”

7

8.  After setting the Rule, open the Arduino and the JSON file, and then copy the code (username, clientId, host, password, and topic) into Arduino, respectively. After copying, upload the file
8

9. Return to the Rule tab, and connect the MQTT Message In and Dashboard
9

10. In the Dashboard tab, you could see a sample temperature
10

Related posts

3 thoughts on “How to show DHT11 data on QIoT Dashboard

  1. Hi! Great article!
    I was able to get data from my boiler and display it with freeboards.
    I can also remotely set the target temperature of the boiler, but I’m not able to do this via mqtt/dashboard. Actually I can’t find a suitable widget of freeboards to enter a number (temperature) (I found just a switch widget) and I’m not able to connect to the engine (nodered) and then send it to the boiler.
    Can you provide an example for this topic?

    1. Cheng Winnie

      Hi, maybe you can go to see https://qiot.qnap.com/blog/en/2017/05/31/connect-indoor-environment-kit-qnap-nas-lesson-3/
      If you have any more question you can ask us again, thanks.

  2. Simon

    Could you please post the Arduino code for this example (step 8) ? I would like to see how you send the data with MQTT.

Leave a Reply