# DHT11 librery wouldn't be instaled i don't knew why

**URL:** https://discourse.nodered.org/t/dht11-librery-wouldnt-be-instaled-i-dont-knew-why/13600
**Category:** General
**Created:** [23 July 2019 10:26 UTC](https://discourse.nodered.org/t/dht11-librery-wouldnt-be-instaled-i-dont-knew-why/13600 "2019-07-23T10:26:31Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![omar](https://avatars.discourse-cdn.com/v4/letter/o/f0a364/32.png) [@omar](https://discourse.nodered.org/u/omar)
#### Post date: [23 July 2019 10:26 UTC](https://discourse.nodered.org/t/dht11-librery-wouldnt-be-instaled-i-dont-knew-why/13600/1 "2019-07-23T10:26:31Z")

</div>

DHT11 librery wouldn't be instaled i don't knew why

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [23 July 2019 10:29 UTC](https://discourse.nodered.org/t/dht11-librery-wouldnt-be-instaled-i-dont-knew-why/13600/2 "2019-07-23T10:29:15Z")

</div>

What is the name of the node you are trying to install?  
How are you trying to install it?  
What error messages does it say?

Have you read the README and installed any software you need to install first?

---

<div class="post-metadata">

### Author: ![omar](https://avatars.discourse-cdn.com/v4/letter/o/f0a364/32.png) [@omar](https://discourse.nodered.org/u/omar)
#### Post date: [23 July 2019 10:37 UTC](https://discourse.nodered.org/t/dht11-librery-wouldnt-be-instaled-i-dont-knew-why/13600/3 "2019-07-23T10:37:10Z")

</div>

thanks in advance this is the web site of version [https://nodejs.org/en/download/](https://nodejs.org/en/download/)  
I try throught command prompt  
this is the message which it gave when i made install Failed to install: node-red-contrib-dht-sensor

Install failed

Check the log for more information

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [23 July 2019 10:40 UTC](https://discourse.nodered.org/t/dht11-librery-wouldnt-be-instaled-i-dont-knew-why/13600/4 "2019-07-23T10:40:06Z")

</div>

Thats the nodejs website and nothing to do with he node you are trying to install.

The name of the node you are trying to install is `node-red-contrib-dht-sensor`

If you are installing it through the command prompt, which directory are you installing it in?

**Have you read the README and installed any software you need to install first?**

---

<div class="post-metadata">

### Author: ![omar](https://avatars.discourse-cdn.com/v4/letter/o/f0a364/32.png) [@omar](https://discourse.nodered.org/u/omar)
#### Post date: [23 July 2019 10:43 UTC](https://discourse.nodered.org/t/dht11-librery-wouldnt-be-instaled-i-dont-knew-why/13600/5 "2019-07-23T10:43:47Z")

</div>

i use this directory C:\Users\khams\>  
no just I watched same tutorials

---

<div class="post-metadata">

### Author: ![omar](https://avatars.discourse-cdn.com/v4/letter/o/f0a364/32.png) [@omar](https://discourse.nodered.org/u/omar)
#### Post date: [23 July 2019 10:45 UTC](https://discourse.nodered.org/t/dht11-librery-wouldnt-be-instaled-i-dont-knew-why/13600/6 "2019-07-23T10:45:39Z")

</div>

but already i instlled some liberires without problem

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [23 July 2019 10:45 UTC](https://discourse.nodered.org/t/dht11-librery-wouldnt-be-instaled-i-dont-knew-why/13600/7 "2019-07-23T10:45:41Z")

</div>

So you need to read the README and install the software it says you need.

To install any node from the command line for Node-RED you need to be in your .node-red directory

That node also mentions "Raspberry Pi" so might not work on a windows machine anyhow, How are you connecting your sensor to your windows machine?

---

<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: [23 July 2019 10:47 UTC](https://discourse.nodered.org/t/dht11-librery-wouldnt-be-instaled-i-dont-knew-why/13600/8 "2019-07-23T10:47:33Z")

</div>

> [@omar](#):
>
> no just I watched same tutorials

Well you should read it. See the link below. I note in particular one of the first lines  
" This is a [Node Red](https://discourse.nodered.org/uploads/short-url/29Qeoc2f82AHEQSM3yWBXkesx5g.png) node to manage connection to a DHT11 or DHT22 sensor on a Raspberry Pi."  
I was not aware you could run Windows on a Pi.

> **[node-red-contrib-dht-sensor](https://flows.nodered.org/node/node-red-contrib-dht-sensor)**
>
> Node-red node for node-dht-sensor

---

<div class="post-metadata">

### Author: ![omar](https://avatars.discourse-cdn.com/v4/letter/o/f0a364/32.png) [@omar](https://discourse.nodered.org/u/omar)
#### Post date: [23 July 2019 10:53 UTC](https://discourse.nodered.org/t/dht11-librery-wouldnt-be-instaled-i-dont-knew-why/13600/9 "2019-07-23T10:53:00Z")

</div>

no i didn't use Raspberry Pi i use esp8266

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [23 July 2019 10:53 UTC](https://discourse.nodered.org/t/dht11-librery-wouldnt-be-instaled-i-dont-knew-why/13600/10 "2019-07-23T10:53:48Z")

</div>

_edit_

you are using an ESP, so you should code it yourself or use some libraries from arduino.

---

<div class="post-metadata">

### Author: ![omar](https://avatars.discourse-cdn.com/v4/letter/o/f0a364/32.png) [@omar](https://discourse.nodered.org/u/omar)
#### Post date: [23 July 2019 10:54 UTC](https://discourse.nodered.org/t/dht11-librery-wouldnt-be-instaled-i-dont-knew-why/13600/11 "2019-07-23T10:54:21Z")

</div>

okk thanks i'll read this README and if doesn't work i'll ask u again Thanks

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [23 July 2019 10:55 UTC](https://discourse.nodered.org/t/dht11-librery-wouldnt-be-instaled-i-dont-knew-why/13600/12 "2019-07-23T10:55:31Z")

</div>

so if you are using a esp8266 what are trying to get the node to do? That node is to decipher the data on the sensor to a temp value and get that into node-red.

---

<div class="post-metadata">

### Author: ![omar](https://avatars.discourse-cdn.com/v4/letter/o/f0a364/32.png) [@omar](https://discourse.nodered.org/u/omar)
#### Post date: [23 July 2019 10:55 UTC](https://discourse.nodered.org/t/dht11-librery-wouldnt-be-instaled-i-dont-knew-why/13600/13 "2019-07-23T10:55:48Z")

</div>

yes even i when i went to manage palette it wouldn't

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [23 July 2019 10:56 UTC](https://discourse.nodered.org/t/dht11-librery-wouldnt-be-instaled-i-dont-knew-why/13600/14 "2019-07-23T10:56:46Z")

</div>

So have you attached a dht11 to a esp8266 and now you want to get the data in node-red?  
If so, what is running on the esp8266?  
How is the esp8266 connected or sending the data to the maching running node-red?

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [23 July 2019 10:58 UTC](https://discourse.nodered.org/t/dht11-librery-wouldnt-be-instaled-i-dont-knew-why/13600/15 "2019-07-23T10:58:55Z")

</div>

You should look for [arduino based dht tutorials](https://randomnerdtutorials.com/esp8266-dht11dht22-temperature-and-humidity-web-server-with-arduino-ide/) instead.

---

<div class="post-metadata">

### Author: ![omar](https://avatars.discourse-cdn.com/v4/letter/o/f0a364/32.png) [@omar](https://discourse.nodered.org/u/omar)
#### Post date: [23 July 2019 10:59 UTC](https://discourse.nodered.org/t/dht11-librery-wouldnt-be-instaled-i-dont-knew-why/13600/16 "2019-07-23T10:59:48Z")

</div>

but before we make connection we have to make the shema

---

<div class="post-metadata">

### Author: ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)
#### Post date: [23 July 2019 11:01 UTC](https://discourse.nodered.org/t/dht11-librery-wouldnt-be-instaled-i-dont-knew-why/13600/17 "2019-07-23T11:01:23Z")

</div>

> [@omar](#):
>
> we have to

Who is “we”, and who is making you? Is this a school project? If so, what have you actually tried so far beyond watching tutorials.

---

<div class="post-metadata">

### Author: ![omar](https://avatars.discourse-cdn.com/v4/letter/o/f0a364/32.png) [@omar](https://discourse.nodered.org/u/omar)
#### Post date: [23 July 2019 11:04 UTC](https://discourse.nodered.org/t/dht11-librery-wouldnt-be-instaled-i-dont-knew-why/13600/19 "2019-07-23T11:04:34Z")

</div>

thanks a lot it help

---

<div class="post-metadata">

### Author: ![omar](https://avatars.discourse-cdn.com/v4/letter/o/f0a364/32.png) [@omar](https://discourse.nodered.org/u/omar)
#### Post date: [23 July 2019 11:05 UTC](https://discourse.nodered.org/t/dht11-librery-wouldnt-be-instaled-i-dont-knew-why/13600/20 "2019-07-23T11:05:17Z")

</div>

yes it's a school project

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [23 July 2019 11:10 UTC](https://discourse.nodered.org/t/dht11-librery-wouldnt-be-instaled-i-dont-knew-why/13600/21 "2019-07-23T11:10:08Z")

</div>

So if you have connected the sensor to the ESP8266 you need the code on the ESP8266 to convert the raw data into a temperature.

If you are connecting the ESP8266 to wifi you can then send the temperature values to Node-RED using for example HTTP or MQTT. But the code you put on the ESP8266 makes that choice...
