The problem
A digital hygrometer using a DHT22 sensor and an Arduino Uno is a dedicated room-humidity instrument that measures relative humidity and temperature, displays the live values on a 16x2 LCD, and writes every reading to a microSD card with a time stamp. The DHT22 is a digital sensor: a capacitive humidity element whose capacitance changes as it absorbs moisture from the air, plus a thermistor for temperature, both read by the sensor's own chip and sent to the Arduino digitally. The Arduino samples the sensor once every 2 seconds, the fastest rate its datasheet allows, compares humidity against high and low firmware thresholds, sounds a buzzer when the room crosses either limit, and appends each reading to a CSV log file on the card. Because the readings are recorded, the student can plot a full day of humidity change instead of quoting one glance at a display. It is a room monitor, not a calibrated laboratory device.
Humidity is easy to feel and hard to quantify. Damp rooms encourage mould and damage stored electronics and books, while very dry air irritates skin and throats, yet most rooms are judged by guesswork or by a cheap wall hygrometer that shows one number and remembers nothing. A student who wants to study how humidity actually moves through a day — after cooking, after rain, overnight — needs a record, not a snapshot. This project fills that gap with a buildable instrument: a sensor, a controller, a display and a logger that together turn invisible air moisture into a dataset the student can plot, analyse and defend.
A capacitive humidity element and thermistor send readings as a 40-bit digital frame.
Follow the working sequence
How it works
The DHT22 sensor measures the room air and the Arduino Uno turns those measurements into a display, a log file and an alert. Every 2 seconds, the fastest its datasheet permits, the Arduino requests a reading over the sensor's single-wire digital protocol; the sensor's internal chip returns humidity and temperature as a 40-bit digital frame. The Arduino validates the frame's checksum, converts the raw values to % RH and °C, and updates the 16x2 LCD. It then compares the humidity against the configured high and low thresholds and sounds the buzzer if either is crossed. Every 10 seconds the reading, with its elapsed-time stamp, is appended as one CSV line on the microSD card over SPI. The same reading is printed to the serial monitor. If a reading is missed or its checksum fails, the firmware keeps the last good value on display and flags the gap in the log instead of writing a false zero.
- The DHT22 sensor samples room air: moisture changes the capacitance of its humidity element and temperature is read from its thermistor.
- The sensor's internal chip converts both measurements into a 40-bit digital frame sent to the Arduino over a single data wire.
- The Arduino requests a new reading once every 2 seconds (datasheet limit), validates the frame checksum, and converts the raw values to % RH and °C.
- The 16x2 LCD updates with the latest humidity and temperature, and the same reading is printed to the serial monitor.
- Firmware compares humidity against the high (70% RH) and low (30% RH) thresholds and sounds the buzzer when either limit is crossed.
- Once every 10 seconds the reading is appended as a CSV line with an elapsed-time stamp to the microSD card over SPI.
- After the run, the CSV file is opened in a spreadsheet and plotted, showing how humidity moved across the day for the report.
Tech stack:
- Arduino Uno (ATmega328P)
- DHT22 humidity · temperature sensor
- 16x2 LCD with I2C adapter
- microSD card module · SPI
- Arduino IDE · C/C++ firmware
- DHT sensor library
- SD library · CSV logging
- Breadboard · jumper wires · buzzer
Requirements
Hardware:
- Arduino Uno (ATmega328P board)
- DHT22 sensor module (3-pin or 4-pin breakout)
- 16x2 character LCD with I2C backpack
- microSD card module with a microSD card (up to 32 GB, FAT32)
- Active buzzer, solderless breadboard, jumper wires
- 5 V USB supply or 9 V DC adapter
Software:
- Arduino IDE
- DHT sensor library (Adafruit DHT-sensor-library class)
- Arduino SD library (built in)
- Spreadsheet application for plotting the CSV log
| Parameter | Value |
|---|---|
| Humidity range | 0–100% RH (datasheet value) |
| Humidity accuracy | ±2% RH typical at 25 °C (datasheet value) |
| Temperature range | −40 to +80 °C (datasheet value) |
| Temperature accuracy | ±0.5 °C (datasheet value) |
| Sampling interval | At most once per 2 seconds (datasheet limit) |
| Logging interval | 1 reading per 10 seconds (design target, configurable) |
| Readings per 24 hours | Approximately 8,640 (calculated from the 10-second interval) |
| Display | 16 × 2 character LCD with I2C adapter |
| Log format | CSV file on microSD card, elapsed-time stamp |
| Alert thresholds | 70% RH high and 30% RH low (defaults, configurable) |
| Controller | Arduino Uno, ATmega328P, 16 MHz clock (datasheet value) |
| Power | 5 V USB or 9 V DC adapter (design) |
Project features
The digital hygrometer is built around four capabilities that work together: humidity sensing from the DHT22 that is accurate enough for room monitoring, a live LCD readout that always shows the current conditions, microSD logging that turns readings into a plottable dataset, and threshold alerts that make the instrument react instead of merely displaying. A two-point calibration procedure ties the sensor to a reference hygrometer so reported values carry a documented correction, the serial monitor mirrors every reading for debugging during assembly, and the logging interval is a single configurable firmware constant. An optional real-time clock module adds wall-clock timestamps for students who need dated logs, while the base build keeps elapsed-time stamps and stays fully offline. Every capability below is implemented in the base build except the clock module, which is labelled as an option, so nothing in the feature list depends on hardware the student does not receive.
- [DHT22 humidity and temperature sensing] (Implemented) The DHT22 measures relative humidity across 0–100% RH and temperature across −40 to +80 °C, sending both as a digital signal over a single data wire, so no ADC calibration or analogue conditioning is needed.
- [Live 16x2 LCD display] (Implemented) Current humidity and temperature are shown on a blue-backlit 16x2 character LCD through an I2C adapter, updating with every new sensor reading so the room condition is visible at a glance.
- [microSD data logging] (Implemented) Every reading is appended to a CSV file on a microSD card with an elapsed-time stamp, at a 10-second interval by default, producing a dataset that opens directly in any spreadsheet for plotting.
- [High and low humidity alerts] (Implemented) Firmware thresholds at 70% RH (high) and 30% RH (low) by default trigger a buzzer when the room crosses either limit, turning the instrument into a monitor that warns instead of only displaying.
- [Two-point calibration procedure] (Implemented) A documented buyer-run procedure compares the DHT22 against a reference hygrometer at two humidity levels and records the offset in firmware, so the student reports a calibrated reading rather than a raw sensor value.
- [Serial monitor live view] (Implemented) Every reading is also printed to the Arduino serial monitor with the same timestamp, which makes wiring faults and sensor errors visible immediately during assembly and demonstration.
- [Configurable logging interval] (Configurable) The logging interval is a single firmware constant, adjustable from the 2-second sensor limit up to several minutes, so the student can trade log detail against file size for short tests or multi-day runs.
- [Real-time clock timestamps] (Optional) A DS3231 RTC module can be added on request so log lines carry wall-clock date and time instead of elapsed time since power-on; it is not part of the base build and no clock, alarm or time display is included otherwise.
What is included
- Working hygrometer prototype (Arduino Uno, DHT22, LCD, microSD module, buzzer, wired on breadboard)
- Complete Arduino firmware with commented code
- Circuit and wiring documentation with pin-connection table
- Component list with part numbers
- Two-point calibration procedure with a worked example
- Sample 24-hour CSV log with plotting instructions
- Project report PDF (background, sensor theory, methodology, results, limitations)
- PPT presentation for final review
- Viva Q&A preparation document (humidity sensing, single-wire protocol, SD logging, calibration)
Limitations & prerequisites
- Humidity accuracy is ±2% RH typical at 25 °C (datasheet value) — this is a room monitor, not a calibrated laboratory instrument, and readings should never be presented as certified measurements.
- The DHT22 can be read at most once per 2 seconds (datasheet limit), so fast humidity spikes shorter than a few seconds cannot be captured.
- The sensor measures the air immediately around it: direct breath, sunlight, a nearby heater or a closed cupboard will skew readings, so placement matters and is covered in the build notes.
- Log lines carry elapsed time since power-on, not wall-clock time, unless the optional DS3231 RTC module is added.
- The microSD card must be formatted FAT32 (up to 32 GB supported configuration); exFAT cards are not recognised by the Arduino SD library.
- Alerts are a local buzzer only — the base build has no Wi-Fi, no mobile notification and no remote dashboard.
- Indoor use only: the prototype is USB-powered, has no weatherproof enclosure, and is not rated for outdoor or condensing environments.
Timeline
- Week 1: Component sourcing, breadboard wiring and first sensor readings on the serial monitor.
- Week 2: LCD display, threshold alerts and buzzer integration.
- Week 3: microSD logging, CSV verification and the two-point calibration procedure.
- Week 4: Full-day test run, plotting, report, PPT and viva preparation.
Support
- WhatsApp support during assembly, first power-on and demonstration.
- Help with wiring faults, sensor errors and SD-card formatting issues.
- Guidance on running the calibration procedure and plotting the logged data.
Frequently Asked Questions
How is this different from the Arduino digital clock with temperature and humidity display?
That project is a wall clock: a DS3231 real-time clock drives the time display with an alarm, and humidity is only a secondary value that rotates on the screen, while this project has no clock, no RTC and no alarm and is a dedicated humidity instrument built around measurement, calibration, SD-card logging and threshold alerts, so the humidity data — not the time — is the point of the build. The two builds share a sensor and a display, but they answer different questions.
How accurate is the DHT22, and can it be calibrated?
The datasheet states ±2% RH typical at 25 °C for humidity and ±0.5 °C for temperature, which is adequate for room monitoring but not for laboratory certification, and the included two-point procedure compares the sensor against a reference hygrometer at two humidity levels and stores the offset in firmware so the report documents the before-and-after readings. Accuracy beyond that needs a calibrated reference instrument, which is outside the scope of a student build.
How often does it log data, and how do I read the log?
The sensor is read once every 2 seconds, which is the fastest the DHT22 datasheet allows, and one reading is written to the microSD card every 10 seconds by default, giving approximately 8,640 readings per 24 hours in a plain CSV file that opens in any spreadsheet for plotting against elapsed time. The interval is a firmware constant, so it can be shortened or lengthened for short tests or multi-day runs.
Does it need internet or a real-time clock?
No: the hygrometer works fully offline on USB power, with sensing, display, alerts and logging all running locally on the Arduino and no Wi-Fi, cloud service or internet connection of any kind, and its log lines carry elapsed time since power-on unless a DS3231 RTC module is added as an option for wall-clock date and time stamps.
Can the thresholds, display or logging interval be changed?
Yes: the high and low humidity thresholds and the logging interval are plain constants at the top of the firmware, so they can be edited and re-uploaded in minutes without touching the wiring, and the 16x2 LCD can be swapped for an OLED display on request while the logging interval can be set anywhere from the 2-second sensor limit up to several minutes.
Is this project suitable for a final-year project?
Yes — for Electronics & Telecommunication, Electrical and Computer Engineering programs, because it demonstrates digital sensor interfacing, the DHT22 single-wire protocol, SPI communication with an SD card, data logging and plotting, threshold-based alert logic, and a documented sensor calibration procedure, all in one buildable prototype. The calibration and logging work give the viva concrete results to discuss.
Components & software requirements
- Arduino Uno (ATmega328P)
- DHT22 humidity · temperature sensor
- 16x2 LCD with I2C adapter
- microSD card module · SPI
- Arduino IDE · C/C++ firmware
- DHT sensor library
- SD library · CSV logging
- Breadboard · jumper wires · buzzer
Requirements
Hardware:
- Arduino Uno (ATmega328P board)
- DHT22 sensor module (3-pin or 4-pin breakout)
- 16x2 character LCD with I2C backpack
- microSD card module with a microSD card (up to 32 GB, FAT32)
- Active buzzer, solderless breadboard, jumper wires
- 5 V USB supply or 9 V DC adapter
Software:
- Arduino IDE
- DHT sensor library (Adafruit DHT-sensor-library class)
- Arduino SD library (built in)
- Spreadsheet application for plotting the CSV log
Delivery information
Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.
Support terms
Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.
Download free synopsis (PDF)
Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.