Smart Home Automation Forum
DHT22 and SCD40 Sensors - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=1)
+--- Forum: KC868-A series and Uair Smart Controller (https://www.kincony.com/forum/forumdisplay.php?fid=6)
+--- Thread: DHT22 and SCD40 Sensors (/showthread.php?tid=7817)



DHT22 and SCD40 Sensors - esskay - 03-17-2025

Greetings, Please advise as to what pins to use for a DHT22 Temp/Humidity sensor as well as an SCD40 Temp/Humidity/CO2 sensor.

Appreciated.


RE: DHT22 and SCD40 Sensors - admin - 03-18-2025

DHT22 use by 1-wire interface, you can chose any free gpio from ESP32, just need include pull up resistance.
another sensor, from image, there is a i2c bus device, you need connect to ESP32 i2c bus.


RE: DHT22 and SCD40 Sensors - twostar - 03-19-2025

A note to the OP, a lot of DHT22's have built-in pullups so you don't need to add them yourself. There's a discussion on this in another thread that I can't find right now.


RE: DHT22 and SCD40 Sensors - admin - 03-19-2025

We recommend using the DHT22 original sensor.