DHT22 AM2302 เซนเซอร์วัดอุณหภูมิและความชื้น DHT22 Module สำหรับ Arduino ESP8266 ESP32 DHT22 PCB สีน้ำเงินสำหรับ Arduino ESP8266 ESP32 DHT22
Overview
AM2302 humidity sensor digital temperature and humidity module is a calibration with digital signal output temperature and humidity composite sensor. It uses a dedicated digital module acquisition technology and temperature and humidity sensing technology to ensure that the product has a very high reliability and excellent long-term stability. The sensor includes a capacitive wetting element and a high-precision temperature measuring element and is connected to a high-performance 8-bit microcontroller. So the product has excellent quality, ultra-fast response, anti-interference ability, cost-effective and so on. Each sensor is calibrated in an extremely accurate humidity calibration room. The calibration coefficients are stored in the form of a program in the microcontroller, and these calibration coefficients are called internally during the processing of the detection signal. Standard single bus interface, the system integration has become simple and quick. Ultra-small size, very low power consumption, signal transmission distance of up to 20 meters or more, making it the most demanding applications for all types of applications. The product is 3-lead (single bus interface) for easy connection. Special package can be provided according to user needs.
Applications
HVAC, dehumidifier, testing and testing equipment, consumer goods, automotive, automatic control, data loggers, home appliances, humidity regulators, medical, weather stations, and other related humidity detection control.
Highlights
ultra-low energy consumption, transmission distance, all automated calibration, the use of capacitive humidity components, fully interchangeable, standard digital single bus output, excellent long-term stability, the use of high-precision temperature measurement components.
Parameters
Size: 40 x 23mm
Weight: 4g
Voltage: 5V
port: digital two-way single bus
Temperature range: -40-80 ℃ ± 0.5 ℃
Humidity range: 20-90% RH ± 2% RH
Wiring Diagram for connecting Keyes AM2302 DHT-22 Module to a Arduino Board
The breakout board already has the pullup resistor installed so we do not need to connect a resistor to our circuit.
This sensor will run from 3.3V. So if you are using an Arduino Board that only has 3.3V then connect the power pin to the 3.3V output on the Arduino instead of 5V. This would be the red wire that is shown in the diagrams below.
Software
To test this sensor we can use sample sketch shown below. You can download the sketch file and the cactus.io DHT22 library to communicate with the sensor. It reads the DHT22 every 2 seconds and prints the results to the console on the computer connected to the USB port on the Arduino.
We are using digital pin 2 to connect to the data pin on the sensor. If you are using a different digital pin then you will need to change the pin number defined on line 6 in the sketch code.
Keyes AM2302 DHT22 Sample Sketch
Sketch Output
Sketch Output
