# 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:** 3

<div class="post-metadata">

### Author: ![Mario-1977](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mario-1977/32/22960_2.png) [@Mario-1977](https://discourse.nodered.org/u/Mario-1977)
#### Post date: [31 May 2020 10:24 UTC](https://discourse.nodered.org/t/dht22-am2302-sensor-doesnt-work-in-nodered/27513/3 "2020-05-31T10:24:37Z")

</div>

> [@gerry](#):
>
> Sounds dumb but it worked.

Thanks gerry for your suggestion but in my case it doesn't work. I changed from Physical pins (rev.2) to  
BCM gpio

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/7/f7a2f7a001ebb8b499b056a144b976d84d46ae88.png)

following my wiring connection

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/2/326d9be0ef27b844ff547e068d14495201c4b3c1.jpeg)

but I always received wrong values:

{"\_msgid":"e68c589b.d4d8f8","topic":"rpi-dht22\_test","payload":"0.00","humidity":"0.00","isValid":false,"errors":4,"location":"Test\_T&H","sensorid":"dht22"}

I tried also to change the connection pin to other pins but nothing happened.

I thought the possible problem could be the correlation between the pins in the list node-red-contrib-dht-sensor and the real pins so I changed (and tested) all the proposed pin numbers into the node-red-contrib-dht-sensor list, but nothing.  
Following my wiring pin table:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/1/51e8eca350540f4e2a1ce8076b920ea9b1a71796.png)

Could the problem be a no compatibility of the sensor DHT22 AM2302 with the node-red-contrib-dht-sensor? Or does it depend from my hardware configuration?  
Does anyone know if there is an alternative palette to node-red-contrib-dht-sensor to control a DHT22 sensor into nodered?

---

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