Built to order

ESP32-Based Food Dehydrator with Heater Control and Drying Timer

This project builds an ESP32-based food dehydrator that dries sliced fruit and vegetables in an enclosed chamber with 4 mesh trays, using a heater and fan under closed-loop temperature and humidity control. The ESP32 reads a DHT22 sensor, switches the heater via relay to hold the set temperature, runs the fan to vent moist air, and stops when the drying timer ends. A kitchen-scale drying appliance, not a room-heater safety device or a solar farm dryer. Suitable for B.E./B.Tech final-year projects in Electronics & Telecommunication, Electrical and IoT & Embedded Systems.

Chat on WhatsApp — get a quotation

IoT & Embedded ESP32DHT22 temperature · humidity sensor16x2 LCD displayArduino IDE · C/C++12 V DC fan5 V relay module100 W PTC heater elementStainless-steel mesh traysHardware
ESP32-Based Food Dehydrator with Heater Control and Drying Timer — project thumbnail preview
More project photos (2)

The problem

The ESP32-Based Food Dehydrator with Heater Control and Drying Timer is a kitchen-scale drying appliance that turns fruit and vegetables into dried food using warm moving air. Fresh produce spoils fast; sun-drying is slow, unhygienic and weather-dependent. A controlled dehydrator holds food at a warm temperature while a fan carries moist air away. This project builds it as a student prototype: a chamber with 4 mesh trays, a 100 W PTC heater (design choice), a 12 V DC fan, and an ESP32 that reads a DHT22 sensor, switches the heater via a relay, and stops when the timer ends. Unlike the live ESP32-Based Room Heater Safety Controller, a safety cut-off for room heaters, this is a drying appliance; unlike the solar agricultural produce dryer, a farm-scale solar system, this is electric, kitchen-scale and ESP32-controlled. Builder note: the DHT22 sits near the top vent, out of the hot-air stream, because readings in the blast ran high and cut it early.

SYSTEM FLOW

4 components 3 connections

Live flow
Drag to explore
100%
sensorDHT22 Sensor

The DHT22 reads chamber temperature and humidity every 2 seconds near the top vent.

Follow the working sequence

How it works

The drying cycle is a closed loop from sensor to controller to heater and fan, repeating until the timer ends. The DHT22 sensor, mounted near the top vent away from the hot-air stream, measures temperature and humidity every 2 s for the ESP32. The ESP32 compares the temperature with the set point, in the 40–70 °C design-target range, and switches the 100 W PTC heater through the relay to hold the chamber near it, while the 12 V fan runs, pushing warm air across the trays and moist air out of the vent. The LCD updates temperature, humidity and remaining time on every read. Above the 80 °C safety limit the controller cuts the heater regardless of the timer; at zero the ESP32 switches heater and fan off and sounds the buzzer. Warm moving air does the drying: the heater raises the air's moisture capacity, and the fan replaces moist air around each slice with drier warm air.

  1. The user slices fruit or vegetables into even pieces, spreads them in a single layer on the 4 mesh trays, and closes the chamber door.
  2. The drying temperature (40–70 °C design-target range) and drying time (up to 12 h, design target) are set with the push-buttons and shown on the 16x2 LCD.
  3. The ESP32 reads temperature and humidity from the DHT22 sensor every 2 s (datasheet sampling period) and updates the LCD.
  4. The ESP32 switches the 100 W PTC heater element (design choice) on and off through the 5 V relay module to hold the chamber near the set drying temperature.
  5. The 12 V DC fan runs continuously, pushing warm air up through the trays and venting moist air out of the top of the chamber.
  6. If the chamber temperature rises above the 80 °C safety limit (design target), the ESP32 switches the heater off immediately until the temperature falls back.
  7. When the drying timer reaches zero, the ESP32 switches the heater and fan off and sounds the buzzer to signal the end of the cycle.

Tech stack:

  • ESP32 development board
  • DHT22 temperature · humidity sensor
  • Arduino IDE · C/C++ firmware
  • 100 W PTC heater element
  • 12 V DC fan
  • 5 V relay module
  • 16x2 LCD display
  • Stainless-steel mesh trays

Requirements

Hardware requirements:

  • ESP32 development board (dual-core, Wi-Fi)
  • DHT22 temperature and humidity sensor module
  • 100 W PTC heater element with finned housing (design choice)
  • 12 V DC fan, 80 mm (design choice)
  • 5 V single-channel relay module, 10 A at 250 V AC (datasheet value)
  • 16x2 character LCD with I2C backpack
  • 4 stainless-steel mesh trays (design target)
  • Push-buttons, buzzer, breadboard and jumper wires
  • Enclosed chamber, approximately 30 × 25 × 25 cm (design target), with top vent
  • 230 V AC mains supply for the heater; 5 V and 12 V DC adapters for logic and fan
    Software requirements:
  • Arduino IDE with ESP32 board support
  • DHT sensor library and LiquidCrystal I2C library
  • C/C++ firmware (single sketch, documented)
Parameter Value
Controller ESP32, dual-core Xtensa LX6 up to 240 MHz (datasheet value)
Temperature sensor DHT22, −40 to +80 °C range, ±0.5 °C accuracy (datasheet values)
Humidity sensor DHT22, 0–100% RH range, ±2% RH accuracy (datasheet values)
Sensor sampling period 2 s (datasheet value)
Heater 100 W PTC heater element (design choice)
Fan 12 V DC fan, 80 mm (design choice)
Drying temperature 40–70 °C (design-target range)
Drying timer Up to 12 h (design target)
Safety cut-off 80 °C (design target)
Trays 4 stainless-steel mesh trays (design target)
Chamber size Approximately 30 × 25 × 25 cm (design target)
Display 16x2 character LCD
Heater switching 5 V relay module, 10 A at 250 V AC (datasheet value)
Power 230 V AC mains for heater; 5 V and 12 V DC rails for logic and fan
Wi-Fi Optional status page only; base drying cycle works without Wi-Fi

Project features

The dehydrator is built around four capabilities that define the whole project: closed-loop heater control that holds the chamber at the set drying temperature instead of running the heater blind; fan-driven airflow that pushes warm air across all 4 trays and vents moist air out, because warm moving air dries food faster; a drying timer that ends the cycle automatically so a batch is not left running overnight; and live temperature, humidity and timer readouts on a 16x2 LCD, so the drying progress is visible without opening the chamber. Supporting pieces — an over-temperature cut-off, push-button set-point entry, and food-contact-safe mesh trays — make it a complete drying appliance, not a heater with a sensor attached. The first-principles line behind the design is simple: warm air holds more moisture than cool air, and moving air carries evaporated moisture away from the food surface, so a heater plus a fan dries slices far faster than either alone.

  • [Closed-loop heater control] The ESP32 compares the DHT22 temperature reading with the set drying temperature every 2 s (datasheet sampling period) and switches the 100 W PTC heater element (design choice) on and off through a 5 V relay module to hold the chamber near the set point.
  • [Fan-driven airflow] A 12 V DC fan at the base pushes warm air up through the 4 stacked mesh trays and out of the top vent, so every tray sees moving air and the moist air does not sit inside the chamber.
  • [Drying timer with auto shut-off] The drying duration is set with push-buttons up to 12 h (design target) and shown on the LCD; when the timer ends, the ESP32 switches the heater and fan off and sounds the buzzer.
  • [Live temperature and humidity display] A 16x2 LCD shows chamber temperature, relative humidity and remaining timer time, updated on every sensor read, so the drying progress is visible without opening the chamber.
  • [Over-temperature cut-off] If the chamber temperature rises above the configured safety limit of 80 °C (design target), the ESP32 switches the heater off immediately and holds it off until the temperature falls back, independent of the timer.
  • [Push-button set-point entry] Two push-buttons with a select key set the drying temperature and timer without reflashing firmware; the values are stored in ESP32 non-volatile memory and survive a power cycle.
  • [Stacked mesh drying trays] 4 removable stainless-steel mesh trays (design target) spread sliced fruit and vegetables in a single layer each, so warm air reaches every slice and trays can be swapped or rotated mid-cycle.
  • [Optional Wi-Fi status page] The ESP32 can serve a simple local status page over Wi-Fi showing temperature, humidity and remaining time; this is an optional customization, not part of the base build, and the base prototype works fully without Wi-Fi.

What is included

  • Working dehydrator prototype (chamber, 4 mesh trays, heater, fan, ESP32 controller, DHT22 sensor, relay, LCD)
  • Complete ESP32 firmware (C/C++ Arduino sketch) with heater control, timer and safety cut-off
  • Circuit and wiring documentation with the DHT22 placement note
  • Component list with part numbers and design choices
  • Setup and first-drying-run instructions
  • Project report PDF (background, drying principles, methodology, results procedure)
  • PPT presentation for final review
  • Viva Q&A preparation document (closed-loop control, DHT22 sensing, relay switching, drying principles)

Timeline

  • Week 1: Chamber fabrication, tray fitting, heater and fan mounting, wiring of ESP32, DHT22, relay and LCD.
  • Week 2: Firmware — sensor reading, heater control loop, timer, safety cut-off and LCD display; first drying run and set-point tuning.
  • Week 3: Final testing, report, PPT and viva Q&A preparation.

Support

  • Setup help for the first drying run, including set-point and timer selection for a chosen food.
  • Guidance on the DHT22 placement and the buyer-run temperature check procedure.
  • Bug fixes for the delivered build for 30 days after delivery.

Limitations & prerequisites

  • Drying time depends on slice thickness, food type, starting moisture and ambient humidity, so no fixed drying time is promised for any food; the buyer-run procedure measures it for their own slices.
  • The 40–70 °C range is a design target, not a certified food-safety claim; the prototype is an academic build and is not a certified food-preservation device.
  • The DHT22 measures ±0.5 °C (datasheet value) and reads every 2 s, so the chamber temperature is held near the set point, not exactly at it.
  • Trays near the heater dry faster than the top tray; trays may need rotating mid-cycle for even drying.
  • The heater runs on 230 V AC mains, so the prototype must be used with the mains wiring enclosed and never opened while powered.
  • The base build has no Wi-Fi dashboard; the optional status page is a customization, not included by default.
  • Thick or very wet foods may need longer than the 12 h timer limit (design target) and a second cycle.
  • The chamber is sized for kitchen-scale batches of approximately 1 kg of sliced produce (design target), not bulk drying.

Frequently Asked Questions

How is this different from the ESP32-Based Room Heater Safety Controller?

They solve different problems: the room heater safety controller is a safety cut-off that watches a room heater for tilt and overheat and latches it off on a fault, while this project is a drying appliance that holds sliced food at a steady drying temperature with a heater, a fan, 4 stacked trays and a drying timer. The controller here regulates temperature to dry food; the safety controller only stops a heater that has gone wrong.

Is this the same as the solar agricultural produce dryer?

No — the solar dryer is a farm-scale agricultural system that dries large quantities of harvested produce using solar heat, while this dehydrator is an electric, kitchen-scale appliance with a 100 W heater element (design choice), a 12 V fan and an ESP32 controller in a chamber of approximately 30 × 25 × 25 cm (design target), built for sliced fruit and vegetables in household-size batches. The two share the drying idea and nothing else.

What drying temperature and time should I use?

The design-target drying range is 40–70 °C with a timer of up to 12 h, set with the push-buttons. Thin apple or banana slices typically dry in the lower half of that range over several hours, while thicker slices need the upper half and longer. No fixed time is promised for any food, because drying time depends on slice thickness, food type and ambient humidity; the report includes a buyer-run procedure to measure the time for the student's own slices.

Does the dehydrator need Wi-Fi or internet?

No — the complete drying cycle, sensor reading, heater control, fan, timer and LCD display, runs entirely on the ESP32 with no network connection, and Wi-Fi matters only for the optional status page, which shows temperature, humidity and remaining time on a phone or laptop on the same network. That page is an optional customization rather than part of the base build.

Can I dry other foods or change the number of trays?

Yes, within the chamber's limits: any sliced fruit, vegetable or herb that fits in a single layer on the mesh trays can be dried, with the drying temperature and timer adjusted for the food, and extra trays can be added or removed as a customization, though more trays reduce the airflow to each one. The 4-tray layout (design target) is the tested balance between batch size and even drying.

Is this project suitable for a final-year project?

Yes — for Electronics & Telecommunication, Electrical and IoT & Embedded Systems programs. It demonstrates closed-loop temperature control, DHT22 sensor interfacing, relay switching of a mains heater, timer-based automation and a real thermal process, giving the team a working appliance to demonstrate and a clear control story to defend in the viva.

Components & software requirements
  • ESP32 development board
  • DHT22 temperature · humidity sensor
  • Arduino IDE · C/C++ firmware
  • 100 W PTC heater element
  • 12 V DC fan
  • 5 V relay module
  • 16x2 LCD display
  • Stainless-steel mesh trays

Requirements

Hardware requirements:

  • ESP32 development board (dual-core, Wi-Fi)
  • DHT22 temperature and humidity sensor module
  • 100 W PTC heater element with finned housing (design choice)
  • 12 V DC fan, 80 mm (design choice)
  • 5 V single-channel relay module, 10 A at 250 V AC (datasheet value)
  • 16x2 character LCD with I2C backpack
  • 4 stainless-steel mesh trays (design target)
  • Push-buttons, buzzer, breadboard and jumper wires
  • Enclosed chamber, approximately 30 × 25 × 25 cm (design target), with top vent
  • 230 V AC mains supply for the heater; 5 V and 12 V DC adapters for logic and fan
    Software requirements:
  • Arduino IDE with ESP32 board support
  • DHT sensor library and LiquidCrystal I2C library
  • C/C++ firmware (single sketch, documented)
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.

Get a quotation