Aquarium heater and light controller

Holds the water temperature within a fraction of a degree with a cross-checking second probe, runs the lamp on a schedule and reports a cold tank.

Smart home Board: ESP32 DevKit V1 (WROOM-32) Level: ●●○ ⏱ 2–3 h

⛔ High risk

Mains 220–230 V can kill. Work with the power off, use certified isolated modules in an enclosure, fuse the line, and ask a qualified electrician if you are not sure.

A thermostat failure is a very bad morning

Aquarium heaters have a built-in thermostat that can stick on. A cooked tank is a common story. The safest design uses the ESP32 as the fine controller, holding the temperature within a fraction of a degree, while the heater’s own thermostat stays set a few degrees higher as a mechanical backup. A second probe lets the controller check the first one and shout when they disagree.

Practical points

  • Switch the heater with a relay rated well above its power, inside a closed box away from splashes, with a drip loop on every cable, and a residual-current device on the circuit.
  • A relay cannot dim a lamp; for a light schedule it simply turns it on and off, and an LED driver with PWM would give sunrise and sunset ramps.
  • In salt water, keep electronics far away and use sealed stainless probes; salt creep ruins connectors.
  • A message when the water falls below a set temperature tells you about an outage or a failed heater before the fish do.

Components

  • ESP32 DevKit V1 (30 pin, WROOM-32)
  • DS18B20 waterproof probe × 2
  • Relay module 1-channel 5V (opto-isolated)
  • Inline fuse holder + fuses
  • Plastic project enclosure

What you need

Buy the parts kit · Estimated total: $13.00

ESP32 DevKit V1 (30 pin, WROOM-32) × 1
$4.00
Buy at AliExpress Buy at Amazon.com
DS18B20 waterproof probe × 2
$3.00
Buy at AliExpress Buy at Amazon.com
Relay module 1-channel 5V (opto-isolated) × 1
$1.50
Buy at AliExpress Buy at Amazon.com
Inline fuse holder + fuses × 1
$1.50
Buy at AliExpress Buy at Amazon.com
Plastic project enclosure × 1
$3.00
Buy at AliExpress Buy at Amazon.com
🇺🇦 Ukraine🌍 Other countries

Ukraine: we buy and sell these parts ourselves, order them on this site.

Some links are affiliate links: we may earn a commission at no extra cost to you.

Related ideas

⛔ High risk

Mains 220–230 V can kill. Work with the power off, use certified isolated modules in an enclosure, fuse the line, and ask a qualified electrician if you are not sure.

Night-tariff water heater scheduler

Heats the water heater only in the cheap night tariff zone or from surplus solar power, with a temperature limit.

  • Board ESP32 DevKit V1 (WROOM-32)
  • Level ●●● Advanced
  • Build time 3–5 h
Pick parts / kit
⛔ High risk

Never replace the boiler's own safety thermostat or overheat protection. The ESP32 is only an extra controller; use a certified relay and a fuse.

Solid-fuel boiler controller

Controls the draft fan and circulation pump by flue-gas and water temperature, with overheat and CO warnings.

  • Board ESP32 DevKit V1 (WROOM-32)
  • Level ●●● Advanced
  • Build time 4–6 h
Pick parts / kit
⛔ High risk

Mains 220–230 V can kill. Work with the power off, use certified isolated modules in an enclosure, fuse the line, and ask a qualified electrician if you are not sure.

Pipe freeze guard with heating cable

Watches the temperature of an unheated pipe, switches a heating cable and warns you when the cable cannot work because the power is out.

  • Board ESP32 DevKit V1 (WROOM-32)
  • Level ●●○ Intermediate
  • Build time 2–3 h
Pick parts / kit

← All module ideas →

Comments

No comments yet. Share your experience or ask a question.

Comments are moderated.