DHT22 Temperature and Humidity Sensor
Simple digital temperature and humidity sensor for weather and greenhouse projects.
AI Ready Overview
Quick Summary
DHT22 is a temperature sensor commonly used in FYP and embedded projects. It is best for weather station fyp and smart greenhouse, with wiring and testing planned around Arduino, ESP32, Raspberry Pi.
Difficulty
Beginner
Time Required
1-3 days for basic wiring and sample code; 1 week if used inside a complete FYP prototype
Cost
RM8-RM18 module range in Malaysia; full project cost depends on scope.
Components
DHT22, Arduino, ESP32, Raspberry Pi
Overview
What is DHT22?
DHT22 is a common digital temperature and humidity sensor. It is slower than professional sensors but easy to use for FYP weather stations, smart rooms and greenhouse demos.
Engineering Reference
Quick Specs
| Operating Voltage | 3.3V-5V |
|---|---|
| Temperature Range | -40C to 80C |
| Humidity Range | 0-100% RH |
| Sampling Rate | About 0.5Hz |
Real Usage Notes
Suitable / Not Suitable
Suitable for
- ✓ Weather station FYP
- ✓ Smart greenhouse
- ✓ Room comfort monitoring
- ✓ Incubator monitoring
Not suitable for
- ✕ Fast response control loops
- ✕ Outdoor installation without enclosure
- ✕ High-accuracy lab measurement
Build Planning
Difficulty
DHT22 is rated Beginner. Plan around 1-3 days for basic wiring and sample code; 1 week if used inside a complete fyp prototypedepending on wiring, libraries, calibration, dashboard/app integration and testing evidence.
Build Planning
Time Required
1-3 days for basic wiring and sample code; 1 week if used inside a complete FYP prototype
Malaysia Price Guidance
Cost
Typical module price range: RM8-RM18. This is component guidance only; a complete FYP cost depends on controller, sensors, casing, display, app/dashboard, documentation and timeline.
Connections
Pinout
VCC
3.3V or 5V supply.
DATA
Digital data output, usually needs pull-up resistor.
GND
Ground connection.
Platform Notes
Wiring Guides
DHT22 with ESP32
Use a pull-up resistor if your module does not already include one.
| DHT22 VCC | ESP32 3V3 |
|---|---|
| DHT22 DATA | ESP32 GPIO4 |
| DHT22 GND | ESP32 GND |
Fix Common Problems
Troubleshooting
Troubleshooting
Common Mistakes
FYP Ideas Using DHT22
Related Projects
Compare Options
Alternative Components
Student Questions
FAQ
Is DHT22 better than DHT11?
DHT22 usually has a wider measurement range and better accuracy than DHT11.
