Rectronx Circuits
Components

DHT22 Temperature and Humidity Sensor

Simple digital temperature and humidity sensor for weather and greenhouse projects.

Temperature Sensor4.5/5RM8-RM18Beginner
ArduinoESP32Raspberry PiSTM32
DHT22 white temperature humidity sensor module

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 Voltage3.3V-5V
Temperature Range-40C to 80C
Humidity Range0-100% RH
Sampling RateAbout 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 VCCESP32 3V3
DHT22 DATAESP32 GPIO4
DHT22 GNDESP32 GND

Fix Common Problems

Troubleshooting

Check wiring against the pinout before debugging code.
Use a stable power supply and common ground between modules.
Test the component with a simple example sketch before adding dashboard, app or database features.

Troubleshooting

Common Mistakes

Reading too frequently
Missing pull-up resistor
Placing sensor near heat from regulators or enclosures

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.