Questions tagged [dht22]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

DHT22 is returning nan when connected to ESP8266, works normal when connected to Arduino Uno

I bought this ESP8266 nodeMCU v0.1(this version number is on board) and some wired DHT22 sensors. When I try sensors on arduino uno, they work normal. But, when I connect them to this nodeMCU I get ...
user avatar
  • 1
0 votes
1 answer
394 views

DHT22 sensor reading code interpretes negative values weirdly (Common problem)

The following code reads the DHT22 temperature and humidity values, assuming the pin value as the sensor's host pin. When the temperature drops below 0 °C, this code returns inadequate values in the ...
user avatar
  • 153
2 votes
1 answer
388 views

Convert float to byte, from Arduino to Raspberry Pi i2c

I'm trying to send the temperature value from the DHT sensor to a raspberry pi through I2C. Which is the best way to do it?. The temp value is a float, and I think I have to convert it to byte and ...
user avatar
  • 123
1 vote
0 answers
202 views

DHT11 sensor not working on ESP8266, no response

recently Ive set up an ESP8266 to control temperature and humidity in rooms, for this Im using DHT11 sensor, thats the basic code I have in order to check functionality in Arduino IDE #include "...
user avatar
  • 111
1 vote
1 answer
68 views

My DHT22 module doesn`t work at all

I had bought this DHT22 module on AliExpress. The module looks fine, but it does not work at all. I had tried lots of sketches, I tried to change the pin, I tried to change the cables, but I always ...
user avatar
  • 153
1 vote
0 answers
107 views

Why do random characters fill up my Arduino LCD Display?

I am making a water pump system for plants and I am running into trouble with displaying my Temperature and Humidity values. I am using a 20x4 LCD, Arduino board uno, Capacitive soil moisture sensor, ...
user avatar
1 vote
1 answer
2k views

DHT11 analog or digital?

I saw some projects with DHT11, some connect it with analog pin, others connect with digital pin. Is there any difference / advantage connecting to the analog?
user avatar
  • 13
1 vote
1 answer
89 views

Reading DHT22 reboots arduino

I’ve got a quite weird behavior of DHT library. I’ve got DHT22 sensor. If it’s signal cable is not connected, reading the sensor causes a problem: Arduino reboots or hangs in unpredictable places. ...
user avatar
  • 419
-2 votes
2 answers
592 views

To control the relay switching in nextion using esp32 Microcontroller

I have developed the code to control the relay switching on/off using nextion display and esp32. But whenever I press my dual state button in the nextion display there is some delay and I need to ...
user avatar
0 votes
1 answer
804 views

How to add calibration to a humidity contoller using UNO and DHT22 sensor?

I am using a setup that helps controlling humidity in an enclosure used to store a humidity sensitive product. My original posting is here. I'm using a NANO and a DHT22 temperature/humidity sensor ...
user avatar
0 votes
2 answers
89 views

How to obtain the type of DHT sensor

I made a simple temperature controller on DHT11. I want it to work with DHT22 as well having the same code. However, I can’t find a way how to get known what type of sensor is installed. Is there a ...
user avatar
  • 419
1 vote
1 answer
92 views

Comparing a text string to text output (DHT22)

Lately I've received a DHT22 sensor. I've started to create a small temperature and humidity monitor station. One of the things I noticed was if you pulled out the sensor while in use, it displayed "...
user avatar