# DHT22 AM2302 sensor doesn't work in nodered

**URL:** <https://discourse.nodered.org/t/dht22-am2302-sensor-doesnt-work-in-nodered/27513>\
**Category:** General\
**Created:** [29 May 2020 21:04 UTC](https://discourse.nodered.org/t/dht22-am2302-sensor-doesnt-work-in-nodered/27513 "2020-05-29T21:04:06Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [31 May 2020 15:34 UTC](https://discourse.nodered.org/t/dht22-am2302-sensor-doesnt-work-in-nodered/27513/7 "2020-05-31T15:34:25Z")

</div>

After installing the BMC v1.65 library, node-dth-sensor and then the node-red-contrib-dht-sensor, I wired up a dht22 using:  
Pin 1 (3.3v) to pin 1 of the dht22  
Pin 6 (Gnd) to pin 4 of the dht22  
Pin 16 (BCM 23) to pin 2 of the dht22  
and a 10K resistor between pins 1 and 2 of the dht22

the node is reporting fine.

```auto
{"_msgid":"591e2642.bdc308",
  "topic":"rpi-dht22",
  "payload":"23.20",
  "humidity":"34.60",
  "isValid":true,"errors":1,
"sensorid":"dht22"}

```

I would uninstall/install node-red-contrib-dht-sensor and try again. If that doesn't work, try another dht22.

---

_[View the full topic](https://discourse.nodered.org/t/dht22-am2302-sensor-doesnt-work-in-nodered/27513)._
