How to use a DHT11 temperature and humidity sensor?

By Kumantech | 27 June 2017 | 2 Comments
Module function test code:

Module of the "+" end of the +5V output, "-" the end of the GND, "S" end of the digital port number 2 (of course, this can be defined by its own digital pin); the method is very simple, the following is left of the test phase......
Above is its typical connection with the processor, there is a specific reference to the following


DHT11 on the specific timing issues we can refer to its datasheet, the following look at how our company's module and Arduino board connection.
When using the power supply and ground connection method to correct, so as not to damage the sensor
Long-term storage temperature 10-40 degrees Celsius, humidity below 60%
Avoid using in case of condensation
Matters needing attention:

Long term stability: < + 1%RH/ years
Resolution: humidity 1%RH, temperature 1
Measurement accuracy: humidity +-2, temperature +-5%RH
Measurement range: humidity 20-90%RH, temperature 0~50
Output: single bus digital signal
Supply voltage: DC 3.3~5.5V
Technical parameters:

DHT11 digital temperature and humidity sensor is a container has been calibrated digital signal output of temperature and humidity complex sensor. It is the application of the special digital acquisition module and temperature and humidity sensing technology, ensure that the product has a high reliability and excellent long-term stability. The product has quality excellence, fast response, strong anti-interference ability, price advantages. The single wire serial interface, allowing the system to integration become simple and quick. Ultra small volume, low power consumption, signal transmission distance up to 20 meters above the become to the class of applications for even the most demanding should occasion best choice for. Products for 4 needle single row pin package, Convenient connection.
Module related introduction:

Digital temperature and humidity sensor DHT11 module:

This experiment is based on Arduino board to test environment temperature and humidity. Temperature and humidity sensor is using DHT11. The experimental circuit is connected by IDE compiler, the environment temperature and humidity can be viewed via serial port monitor in real time.

dht11 DHT11;
#define DHT11PIN 2
void setup()
void loop()
  Serial.print("Read sensor:");
    case DHTLIB_OK:
    Serial.println("Checksum error");
    Serial.println("Time out error");
    Serial.println("Unknown error");

Test screenshot:

Concluding remarks:
Module is introduced here, if you are interested in it can buy their own at home, slowly study, for using it to make a very creative things out, for the rest of your life add to the fun...

January 10,2021 20:31
Pills prescribing information. Long-Term Effects. <a href="">can i order cheap prednisone tablets</a> in Canada. All about medicament. Read now. <a href=
Blair Elzinga
July 27,2019 06:10
Could you provide an example of programming to use the DHT11 with raspberry pi? Thank you.
Leave a Reply
Your email address will not be published.Required fields are marked. *
Name *
Email *
Popular blog