# Regarding Dht11 sensor and Node-red interface

**URL:** <https://discourse.nodered.org/t/regarding-dht11-sensor-and-node-red-interface/22312>\
**Category:** General\
**Created:** [27 February 2020 07:56 UTC](https://discourse.nodered.org/t/regarding-dht11-sensor-and-node-red-interface/22312 "2020-02-27T07:56:30Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramesh](https://avatars.discourse-cdn.com/v4/letter/r/d07c76/32.png) [@Ramesh](https://discourse.nodered.org/u/Ramesh)\
**Post date:** [27 February 2020 07:56 UTC](https://discourse.nodered.org/t/regarding-dht11-sensor-and-node-red-interface/22312/1 "2020-02-27T07:56:30Z")

</div>

Heloo friends, im getting dht11 sensor readings on arduino serial monitor but not displaying on NODE-red GUI. please help me to solve this issue...

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [27 February 2020 10:42 UTC](https://discourse.nodered.org/t/regarding-dht11-sensor-and-node-red-interface/22312/2 "2020-02-27T10:42:27Z")

</div>

Are you able to read them into node-red? If not how have you tried?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [27 February 2020 11:51 UTC](https://discourse.nodered.org/t/regarding-dht11-sensor-and-node-red-interface/22312/3 "2020-02-27T11:51:55Z")

</div>

We won't be able to help much unless you share what you've tried.

Also note that devices tend to only allow a single connection to a serial port. That means that if you have the Arduino serial monitor running and then try to connect to the same serial port in Node-RED, it will likely fail.

---

<div class="post-metadata">

**Author:** ![Ramesh](https://avatars.discourse-cdn.com/v4/letter/r/d07c76/32.png) [@Ramesh](https://discourse.nodered.org/u/Ramesh)\
**Post date:** [27 February 2020 17:22 UTC](https://discourse.nodered.org/t/regarding-dht11-sensor-and-node-red-interface/22312/4 "2020-02-27T17:22:10Z")

</div>

I'm getting humidity & temperature reading on Arduino serial monitor only. I'm not getting reading on Node-red gui having gauge for humidity & temperature

---

<div class="post-metadata">

**Author:** ![Ramesh](https://avatars.discourse-cdn.com/v4/letter/r/d07c76/32.png) [@Ramesh](https://discourse.nodered.org/u/Ramesh)\
**Post date:** [27 February 2020 17:25 UTC](https://discourse.nodered.org/t/regarding-dht11-sensor-and-node-red-interface/22312/5 "2020-02-27T17:25:39Z")

</div>

Sir, Im using Dht11 sensor with Arduino to display reading of humidity & temperature on Node-red gui. I'm getting reading on Arduino serial monitor but not on Node-red gui.  
I close Arduino serial monitor before connecing to serial port of Node-red.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [27 February 2020 17:27 UTC](https://discourse.nodered.org/t/regarding-dht11-sensor-and-node-red-interface/22312/6 "2020-02-27T17:27:36Z")

</div>

Sharing the relevant part of your flow possibly along with a screenshot of it (if it is complex) would be helpful.

---

<div class="post-metadata">

**Author:** ![Ramesh](https://avatars.discourse-cdn.com/v4/letter/r/d07c76/32.png) [@Ramesh](https://discourse.nodered.org/u/Ramesh)\
**Post date:** [27 February 2020 17:34 UTC](https://discourse.nodered.org/t/regarding-dht11-sensor-and-node-red-interface/22312/7 "2020-02-27T17:34:32Z")

</div>

![FB_IMG_1582742880111](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/a/da0a55d553b7a7f6da534c26c73b2369cc5cb881.jpeg) ![FB_IMG_1582742874741](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/3/63b26fd8283c929e4f13cfb6ec515e0ec16fd71f.jpeg)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [27 February 2020 17:43 UTC](https://discourse.nodered.org/t/regarding-dht11-sensor-and-node-red-interface/22312/8 "2020-02-27T17:43:30Z")

</div>

Please put a debug node direct onto the incoming serial node. That way you can see the real data coming in.

The problem will be in your function node which I've no doubt makes an assumption about the data type which is incorrect. You will doubtless find that you've assumed that the incoming data is a number whereas it is likely to be a string representation of a number.

---

<div class="post-metadata">

**Author:** ![Ramesh](https://avatars.discourse-cdn.com/v4/letter/r/d07c76/32.png) [@Ramesh](https://discourse.nodered.org/u/Ramesh)\
**Post date:** [27 February 2020 17:46 UTC](https://discourse.nodered.org/t/regarding-dht11-sensor-and-node-red-interface/22312/9 "2020-02-27T17:46:17Z")

</div>

![IMG_20200227_231459](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/6/c6338809ff524517af770677ded5a18c57f7faca.jpeg)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [27 February 2020 20:28 UTC](https://discourse.nodered.org/t/regarding-dht11-sensor-and-node-red-interface/22312/10 "2020-02-27T20:28:34Z")

</div>

Hmm, this is somewhat painful. Usually, screenshots are done electronically on the OS rather than via a wonky camera.

Since I can just about see that the output is in fact numeric. The last thing remains is that there is an error in your function node.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [27 April 2020 20:28 UTC](https://discourse.nodered.org/t/regarding-dht11-sensor-and-node-red-interface/22312/11 "2020-04-27T20:28:39Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
