DHT22 Humidity Sensor


৳ 300.00

The DHT22 is a basic, low-cost digital temperature and humidity sensor. It uses a capacitive humidity sensor and a thermistor to measure the surrounding air, and spits out a digital signal on the data pin (no analog input pins needed). It’s fairly simple to use, but requires careful timing to grab data. The only real downside of this sensor is you can only get new data from it once every 2 seconds, so when using our library, sensor readings can be up to 2 seconds old.

Simply connect the first pin on the left to 3-5V power, the second pin to your data input pin and the rightmost pin to ground. Although it uses a single-wire to send data it is not Dallas One Wire compatible! If you want multiple sensors, each one must have its own data pin.

It uses a capacitive humidity sensor and a thermistor to measure the surrounding air, and spits out a digital signal on the data pin

  • Model Number:DHT22
  • Voltage: 250V
  • Power Source: DC
  • DHT22 sensor has better humidity measuring range, from 0 to 100% with 2-5% accuracy

Package Included

  • 1 X DHT22 Humidity Sensor

 

Diagram

DHT22-DHT11-Circuit-Schematics

Sample Code:

  1. * Program made by Dejan Nedelkovski,
  2. * www.HowToMechatronics.com
  3. */
  4. /*
  5. * You can find the DHT Library from Arduino official website
  6. * https://playground.arduino.cc/Main/DHTLib
  7. */
  8. #include <dht.h>
  9. #define dataPin 8 // Defines pin number to which the sensor is connected
  10. dht DHT; // Creats a DHT object
  11. void setup() {
  12. Serial.begin(9600);
  13. }
  14. void loop() {
  15. int readData = DHT.read22(dataPin); // Reads the data from the sensor
  16. float t = DHT.temperature; // Gets the values of the temperature
  17. float h = DHT.humidity; // Gets the values of the humidity
  18. // Printing the results on the serial monitor
  19. Serial.print(“Temperature = “);
  20. Serial.print(t);
  21. Serial.print(” *C “);
  22. Serial.print(” Humidity = “);
  23. Serial.print(h);
  24. Serial.println(” % “);
  25. delay(2000); // Delays 2 secods, as the DHT22 sampling rate is 0.5Hz
  26. }

Based on 0 reviews

0.0 overall
0
0
0
0
0

Be the first to review “DHT22 Humidity Sensor”

There are no reviews yet.