Local-first ESP32 controller

FridgeCure

Turn a small fridge into an automated drying and curing chamber with an ESP32, a temperature and humidity sensor, a heat mat, and two Tasmota smart plugs.

FridgeCure dashboard showing temperature, humidity, control bands, duty cycle, and device status

What it does

Works locally

The ESP32 controls the fridge and heater over its own private Wi-Fi network, even when the home router or internet is unavailable.

Adapts to the chamber

Temperature and humidity control bands learn from real cycles to reduce overshoot and excessive compressor or heater switching.

Includes a dashboard

Monitor readings, learned control bands, duty history, plug state, sensor health, Wi-Fi, and optional Home Assistant connectivity.

The practical chamber concept is inspired by Growtutorials' DIY fridge curing guide. That video is a useful reference for chamber layout, fan placement, and water management.

Open the interactive FridgeCure demo to explore the dashboard and settings without a device.

Safety first

This project combines mains electricity, moisture, refrigeration, and heat. Test the system while you are present before leaving it unattended.

No software installation required

Install FridgeCure from your browser

Use a desktop version of Chrome or Microsoft Edge and a USB data cable. Safari and Firefox do not currently provide the Web Serial support required by the installer.

Loading the firmware installer…

Before connecting

  1. Disconnect the sensor and other peripherals if they interfere with the board's boot pins.
  2. Connect the ESP32 directly to the computer with a known-good USB data cable.
  3. Select the exact board model. ESP32-C6 carrier boards are not interchangeable even though they use the same chip.
  4. Choose Connect and install, select the serial port, and keep the cable connected until verification completes.

If connection fails while the existing firmware keeps printing messages, hold BOOT while choosing Connect and install and selecting the serial port. Release BOOT after chip detection begins. If necessary, keep holding BOOT, briefly press RESET/EN, and retry.

The normal installation preserves the settings storage area. Use Erase the entire flash first only for recovery or a deliberate factory reset.

Hardware

Simplified FridgeCure hardware layout with fridge, heat mat, fan, ESP32, sensor, and smart plugs

Illustration only: use cable lengths and enclosures appropriate for your chamber.

Parts and approximate cost

PartQuantityApproximate price
Small fridge120–100 EUR
Supported ESP32 development board15–15 EUR
SHT41 or SHT31 sensor18–20 EUR
Tasmota smart plug215–25 EUR each
Seedling heat mat120–50 EUR
Small 5 V fan15–15 EUR

Pre-flashed plugs are available from suppliers such as Athom's Tasmota range.

Connect the sensor

Turn off the ESP32 before wiring the sensor. Connect VCC to 3V3, GND to GND, SDA to the board's default SDA pin, and SCL to its default SCL pin.

Board profileSDASCL
ESP32 Dev ModuleGPIO 21GPIO 22
Seeed Studio XIAO ESP32C6GPIO 22GPIO 23

Hang the sensor in free air near the middle of the chamber. Keep it away from the cold wall, heat mat, direct fan outlet, and condensation.

Seeed Studio XIAO ESP32C6 wired to an SHT41 sensor
Example XIAO ESP32C6 and SHT41 wiring.
FridgeCure sensor settings with sensor type and I2C pin fields
The sensor type and pins can be changed after installation.

First start

  1. Power the ESP32 after installation.
  2. Connect a phone or computer to the Wi-Fi network FridgeCure using password fridgecure.
  3. Open http://192.168.4.1.
  4. Immediately change both the access-point name and password before normal use.
FridgeCure dashboard showing readings, adaptive control ranges, status buttons, and duty history

Connect to home Wi-Fi

  1. Open the Wi-Fi settings from the dashboard.
  2. Enter the home network name and password.
  3. Select Connect and wait for the connected status.

You can then use the displayed device IP. If the network supports mDNS, http://fridgecure.local may also work.

FridgeCure Wi-Fi settings

Configure the Tasmota plugs

Use one plug for the fridge and one for the heat mat. Both plugs should join the ESP32 access point so control continues without the home network.

  1. Change the ESP32 access-point name and password in FridgeCure.
  2. For each Tasmota plug, join its temporary setup Wi-Fi and open http://192.168.4.1.
  3. Configure the plug to use the new FridgeCure access-point credentials.
  4. In FridgeCure, assign the fridge plug under Dehumidifier and the heat-mat plug under Heater.
  5. Use each panel's Toggle button while present to verify the correct physical device switches.
FridgeCure access-point settings
Use unique access-point credentials.
FridgeCure dehumidifier plug settings
Assign the plug that powers the fridge.
FridgeCure heater plug settings
Assign the plug that powers the heat mat.

Choose cautious starting settings

Good targets depend on the material, chamber, and ambient conditions. As an initial supervised test, 58% RH and 20 °C are reasonable example values—not universal curing advice.

The targets are averages rather than fixed switch points. FridgeCure learns a control band around each target and adjusts it after valid operating cycles. Watch the first cycles and confirm that the fridge reduces humidity, the heater raises temperature, the fan stabilizes readings, and the compressor does not short-cycle.

Optional Home Assistant connection

FridgeCure works without Home Assistant. MQTT discovery can add readings, targets, device activity, and sensor health to an existing Home Assistant installation.

  1. Configure an MQTT broker and the MQTT integration in Home Assistant.
  2. Open Home Assistant in FridgeCure.
  3. Enter the broker address, port, username, and password.
  4. Keep the discovery prefix as homeassistant unless the broker uses another prefix.
FridgeCure Home Assistant and MQTT settings

See the Home Assistant MQTT documentation for broker and discovery setup.

Disclaimer

This is an experimental DIY controller, not a certified appliance safety system. You are responsible for electrical safety, food safety, process suitability, and supervision of your equipment.