Data monitoring from the DHT11 sensor in Rightech IoT Cloud platform

Explain step by step how to connect the DHT11 sensor to RIC platform.

YouTube link with this use case.

1. Model creation

First of all, we create a device model (we take the MQTT model as a template). We leave the default parameters unchanged: Temperature, Humanity, Latitude, Longitude. In each parameter, you should pay attention to the Source field, since it indicates the MQTT-topic on which the values ​ ​ of this parameter will be taken.

2. Adding Object

Next, we create an object that will represent our device. Go to Objects, click plus, and fill in the parameters.

Therefore, we have added and configured a new object, but the data from the device has not yet been received. Data will not be sent and displayed until the hardware is configured on the cloud platform.

3. Device Setup

In our example we use the NodeMCU board. The process of connecting similar boards is practically the same.

In order to get started with NodeMCU, connect the board to your computer. To connect, you may need to install the CP2102 driver (for example, this one ( # software)). Open the Arduino IDE and select File – Settings.
A link must be inserted in the Additional Links for Board Manager window:

After that, in the Tools menu – “Payment” – “The manager of payments” we choose “esp8266” and we choose – to install the latest version. After these steps have been taken, the NodeMCU must be found in the Tools – Board menu.

Copy the example code to the environment:

GitHub link

In the code from the example, we edit the values ​ ​ of the wifi-ssid, wifi-password parameters according to the settings of your Wi-Fi. Next, we edit the value of the parameter ric-mqtt-client-id (in the screenshot, the ID field with the value mqtt-rightech_demo_dev-2lgj8u) according to the created object in the platform. Upload the code to the board.

Our layout looks as follows:

4. Data Mapping

When the device is connected, the data will appear on the platform.

Try creating your IoT project with Rightech IoT Cloud now 🙂

And if you have any questions, welcome to our chat of like-minded fellas: