β οΈ Affiliate Disclosure: This post contains Amazon affiliate links. If you purchase through our links, we may earn a small commission at no extra cost to you. Every product below was checked against its live Amazon listing before publishing. Prices change often, so we don’t list them here. Tap any Buy Here button to see the current price on Amazon.
Ultimate Buying Guide
β‘ Best ESP32 Relay Boards for Home Automation
12 ESP32 relay boards for switching lights, pumps, gates and appliances: isolated industrial modules, multi-channel dev boards, a low-voltage learning board and Espressif-based Shelly smart relays. Verified Amazon links, ESPHome tips and honest safety advice throughout.
β
12 Relay Boards Compared
β
Verified Amazon ASINs
β
1 to 8 Channels
β
Safety-First Advice
π§
Comparing ESP32 chips? Our
ESP32 chip comparison hub compares every ESP32 chip side by side and links to all of our ESP32 buying guides.
Relays are how an ESP32 reaches into the real world: switching a light, a water pump, a garage door opener, a heater or a whole bank of irrigation valves from Home Assistant, a phone app or an automation rule. Instead of wiring loose relay modules to a dev board with jumper wires, an ESP32 relay board puts the microcontroller, the relays, the power supply and the driver circuitry on one PCB, often with isolation, screw terminals and a DIN-rail case.
This guide compares 12 ESP32 relay boards in three groups: isolated industrial modules from Waveshare, budget multi-channel boards with onboard AC-DC power supplies, and Espressif-based smart relays from Shelly that work out of the box and can often be flashed with ESPHome. Because many of these boards switch mains voltage, read the safety notes before you buy.
β οΈ Mains safety first: Relay boards rated for 250 VAC can be connected to dangerous voltages. Only wire mains loads if you’re qualified to do so, or have a licensed electrician do it; follow your local electrical code, use a proper enclosure, fuses and strain relief, and keep low-voltage wiring separated from mains. Never program, probe or touch a board while it’s connected to mains, and never connect a USB cable to a board powered from its onboard AC supply. For learning, start with a low-voltage board like the LILYGO T-Relay and switch 5β12 V loads such as LED strips, fans or solenoid valves.
β‘ Quick Comparison: All 12 Relay Boards
| Board | Chip | Channels | Key Feature | Best For | Buy |
|---|
| π₯ Waveshare Industrial 6-Ch Relay | ESP32-S3 | 6 Γ 10 A | Isolated RS485, Pico HAT header | Best Overall | Buy Here β |
| π
LILYGO T-Relay | ESP32-WROVER-B | 4 | 5 V, optocoupler isolation, 8 MB PSRAM | Low-Voltage Learning | Buy Here β |
| π Waveshare Industrial 8-Ch Relay | ESP32-S3 | 8 | Isolated RS485, digital inputs | Larger Installations | Buy Here β |
| π Waveshare 8-Ch Relay (PoE ETH) | ESP32-S3 | 8 | PoE Ethernet + RS485 | Wired Control Panels | Buy Here β |
| π¦ Waveshare Industrial 1-Ch Relay | ESP32-S3 | 1 Γ 10 A | DIN-rail case, RS485 | Single-Load DIN Rail | Buy Here β |
| π° DORHEA ESP32 4-Ch Relay | ESP32-WROOM-32E | 4 | AC 220 V or DC 5β30 V supply | Budget 4-Channel | Buy Here β |
| π ACEIRMC ESP32 4-Way Relay | ESP32 (32E) | 4 | AC 90β250 V or DC 7β30 V | Wide-Input 4-Channel | Buy Here β |
| π’ DORHEA ESP32 8-Ch Relay | ESP32-WROOM-32E | 8 | DC 5β30 V supply | Budget 8-Channel | Buy Here β |
| βοΈ ESP32 2-Ch Relay (DC 5β60 V) | ESP32 | 2 | Wide DC input | Vehicles & 12/24 V | Buy Here β |
| π Shelly 1 Gen3 (4-Pack) | Espressif-based | 1 Γ 16 A | In-wall, dry contacts, Matter | Ready-Made Smart Relay | Buy Here β |
| π€ Shelly 1 Mini Gen4 | Espressif-based | 1 Γ 8 A | Wi-Fi, Zigbee & Matter, tiny | Tight Wall Boxes | Buy Here β |
| ποΈ Shelly Pro 1 | Espressif-based | 1 Γ 16 A | DIN rail, LAN + Wi-Fi | Distribution Boards | Buy Here β |
Specs come from the live Amazon listings and manufacturer pages. Relay ratings are maximums for the relay contacts; derate them for motors and inductive loads.
π What to Look for in an ESP32 Relay Board
π‘οΈ
Isolation
Optocoupler and power isolation keep relay switching spikes and mains faults away from the ESP32. Industrial boards like Waveshare’s add isolated power and RS485, which is far more robust for permanent installs than a bare budget board.
π
Power Input
Many boards include an AC-DC supply so they run directly from mains; others take 5β30 V DC or more. A wide DC input (up to 60 V on some) suits vehicles, solar systems and 24 V industrial supplies.
π’
Channel Count and Rating
Count your loads and add spares. Check the contact rating (typically 10 A at 250 VAC) and derate for motors, pumps and compressors, which draw large inrush currents; use a contactor for heavy loads.
π‘
Connectivity
Wi-Fi and Bluetooth are standard. RS485 lets the board talk Modbus to meters and sensors, Ethernet or PoE gives a reliable wired link, and Matter or Zigbee (on newer Shelly devices) connects to ecosystems without a hub.
π§©
Programming and Enclosure
Dev-style boards with USB-C are easiest to program. Budget boards often need a USB-to-serial adapter on a header. For permanent installs, a DIN-rail case or proper enclosure is essential.
π Detailed Reviews: ESP32 Relay Boards
π₯ BEST OVERALL
Waveshare Industrial 6-Channel ESP32-S3 Relay Module
β 4.7/5 Β· The Most-Reviewed Isolated ESP32 Relay Board
6 Γ 10 A
250 VAC / 30 VDC
Buy on Amazon β

Waveshare’s Industrial 6-Channel ESP32-S3 Relay Module is the ESP32 relay board we’d trust for a permanent installation, and it’s the most-reviewed isolated option on Amazon (about 4.6 stars from 75 ratings). The ESP32-S3 drives six relays rated at 10 A, 250 VAC / 30 VDC, behind multiple isolation protection circuits, and adds an isolated RS485 port for Modbus energy meters, sensors and industrial modules. A 40-pin Pico HAT header lets you stack Waveshare expansion boards for extra inputs or sensors. It’s controllable over Wi-Fi, Bluetooth or RS485 and is popular with ESPHome and Home Assistant users for irrigation, lighting circuits and HVAC zones. Only 1 was in stock when we checked; the 8-channel version below is the in-stock alternative.
β
Pros- Isolation protection throughout
- Isolated RS485 for Modbus
- Pico HAT expansion
- Strongest review base
β Cons- Very low stock
- Needs an enclosure for mains use
- Costs more than budget boards
π― Verdict: The best-built ESP32 relay board for permanent home and industrial automation.
π Check Price on Amazon β
π
BEST FOR LOW-VOLTAGE LEARNING
LILYGO T-Relay ESP32 (5 V, 4 Relays)
β 4.2/5 Β· A Safe Way to Learn Relay Control
WROVER-B
4 MB FLASH Β· 8 MB PSRAM
4 Relays
OPTOCOUPLER ISOLATED
Buy on Amazon β

The LILYGO T-Relay runs from a 5 V DC supply with no onboard mains power section, which makes it the safest board here for learning relay control. It’s built on an ESP32-WROVER-B with 4 MB flash and 8 MB PSRAM and carries four relays with optocoupler isolation plus 16 expansion GPIOs for sensors and buttons. Start by switching 12 V LED strips, fans, door strikes or solenoid valves, and move to mains only once your code and wiring are proven and installed by someone qualified. LILYGO publishes schematics and examples on GitHub. It has about 4.0 stars from 41 ratings, with good stock.
β
Pros- Low-voltage supply, safer to learn on
- Optocoupler isolation
- 8 MB PSRAM
- Open-source docs
β Cons- Older ESP32 module
- No RS485 or Ethernet
- Mixed reviews
π― Verdict: The best ESP32 relay board for learning and low-voltage projects.
π Check Price on Amazon β
π BEST FOR LARGER INSTALLATIONS Β· β 4.7/53. Waveshare Industrial 8-Channel ESP32-S3 Relay Module
ESP32-S3 dual-core 240 MHz Β· 8 relays Β· digital inputs Β· isolated RS485 Β· multiple isolation protection circuits
Buy Here β

Waveshare’s 8-channel version gives you two more relays plus digital inputs, which is useful for reading wall switches, door contacts or float sensors on the same board. Like the 6-channel model, it uses an ESP32-S3 with an isolated RS485 interface and isolation protection, so it suits whole-house lighting circuits, multi-zone irrigation or a small machine controller. It’s rated about 4.8 stars from 13 ratings and was well stocked when we checked, which makes it the practical pick while the 6-channel board is scarce.
β
Pros: 8 relays + inputs; isolated RS485; excellent rating; in stock.
β Cons: Larger footprint; fewer reviews than the 6-channel.
π― Verdict: The best isolated ESP32 board when you need eight relays and inputs.
π BEST WIRED CONTROLLER Β· β 4.6/54. Waveshare Industrial 8-Channel ESP32-S3 Relay (PoE Ethernet)
ESP32-S3 Β· 8 relays Β· digital inputs Β· RS485 Β· PoE Ethernet port Β· power and optocoupler isolation
Buy Here β

For control panels where Wi-Fi isn’t reliable enough, such as a garage, a pump house or a commercial site, this version of Waveshare’s 8-channel board adds a PoE Ethernet port. One network cable can power the board and connect it to Home Assistant or a Modbus TCP system, while the RS485 port talks to field devices. It keeps the same relays, digital inputs and isolation circuits as the Wi-Fi model, and Waveshare supports the Arduino IDE. It has about 5 stars from 9 ratings, with good stock. Our ESP32 Ethernet and PoE guide covers more wired boards.
β
Pros: PoE Ethernet; RS485; 8 relays with isolation.
β Cons: Needs a PoE switch or injector; few reviews.
π― Verdict: The ESP32 relay controller for wired, single-cable installs.
π¦ BEST SINGLE-LOAD DIN RAIL Β· β 4.5/55. Waveshare Industrial 1-Channel ESP32-S3 Relay Module
ESP32-S3 Β· Wi-Fi + BLE 5 Β· 1 relay, 10 A 250 VAC / 30 VDC Β· RS485 Β· isolation protection Β· rail-mount case
Buy Here β

Sometimes you only need to switch one load: a water heater, a pump or a ventilation fan. Waveshare’s 1-channel ESP32-S3 relay does exactly that in a rail-mount case that clips into a standard DIN-rail enclosure, with a 10 A, 250 VAC relay, RS485 and the same isolation protection as its bigger siblings. Because it’s enclosed, it’s a much tidier and safer choice for a distribution board than an open PCB. Reviews are perfect but few (5 stars from 5 ratings), with 19 in stock.
β
Pros: DIN-rail case; RS485; isolated; good stock.
β Cons: Single channel; few reviews.
π― Verdict: The neatest way to add one ESP32-controlled circuit to a DIN-rail panel.
π° BEST BUDGET 4-CHANNEL Β· β 4.1/56. DORHEA ESP32 Wi-Fi 4-Channel Relay Module
ESP32-WROOM-32E Β· 4 MB flash Β· 4 relays Β· onboard AC 220 V / DC 5β30 V power supply Β· UART download header
Buy Here β

DORHEA’s 4-channel ESP32 relay board is a popular budget choice for ESPHome and Tasmota projects (about 4.2 stars from 21 ratings). It combines an ESP32-WROOM-32E module with 4 MB of flash, four relays and an onboard AC-DC switching supply that runs from either AC 220 V or DC 5β30 V, plus reset and programmable buttons. All I/O and the UART download port are broken out, so flash it with a USB-to-serial adapter. There’s no isolation beyond the basic relay drivers, so keep it in a proper enclosure and treat the whole board as live when it’s mains powered.
β
Pros: Cheap; AC or DC power; all I/O broken out.
β Cons: Needs a serial adapter; limited isolation; no case.
π― Verdict: A good-value 4-channel ESP32 relay board for enclosed projects.
π BEST WIDE-INPUT 4-CHANNEL Β· β 4.0/57. ACEIRMC ESP32 4-Way Relay Development Board
ESP32 (32E) Β· 4 MB flash Β· 4 Γ 5 V relays Β· AC 90β250 V / DC 7β30 V / 5 V supply
Buy Here β

ACEIRMC’s board covers the same ground as the DORHEA model with a wider power input: its onboard supply accepts AC 90β250 V, DC 7β30 V or a direct 5 V feed, so the same board works in 120 V and 230 V countries or from a 12/24 V DC supply. It has an ESP32 module with 4 MB of flash, four 5 V relays and all I/O and UART pins broken out for development. It has about 4.1 stars from 20 ratings. The same caveats apply: no case, limited isolation, and a USB-to-serial adapter needed for flashing. A 2-pack (B0DTK2PB26) is also listed.
β
Pros: Very wide AC/DC input; cheap; all pins broken out.
β Cons: Limited isolation; no enclosure; serial adapter needed.
π― Verdict: A flexible budget 4-channel board for almost any supply voltage.
π’ BEST BUDGET 8-CHANNEL Β· β 4.1/58. DORHEA ESP32 Wi-Fi 8-Channel Relay Module
ESP32-WROOM-32E Β· 8 relays Β· DC 5β30 V power supply Β· broken-out I/O and UART
Buy Here β

When you need eight outputs on a budget, such as for irrigation zones, aquarium equipment or a model railway, DORHEA’s 8-channel ESP32 relay board is the low-cost option (about 4.2 stars from 21 ratings). It uses the ESP32-WROOM-32E and runs from a DC 5β30 V supply, so it pairs well with a 12 V or 24 V power supply and low-voltage loads like solenoid valves. As with all budget relay boards, add your own enclosure and isolation for anything permanent. Only 5 were left when we checked.
β
Pros: 8 relays for little money; DC 5β30 V input.
β Cons: Limited isolation; low stock; serial adapter needed.
π― Verdict: The cheapest way to get eight ESP32-controlled relays on low-voltage DC.
βοΈ BEST FOR 12/24 V SYSTEMS Β· β 4.4/59. ESP32 2-Channel 5 V Relay Module (DC 5β60 V)
ESP32 Β· 4 MB flash Β· 2 relays (AC 250 V / DC 30 V contacts) Β· DC 5β60 V supply Β· programmable and reset keys
Buy Here β

This compact 2-channel ESP32 relay board stands out for its DC 5β60 V input range, which covers 12 V vehicles, 24 V industrial supplies and 48 V solar or battery systems without a separate converter (about 4.6 stars from 22 ratings). It has an ESP32 with 4 MB flash, two relays for loads up to AC 250 V or DC 30 V, programmable and reset buttons, and all I/O plus the UART download port broken out. It’s a good fit for switching a camper’s water pump and lights, or a solar system’s load disconnect.
β
Pros: Wide 5β60 V DC input; compact; good rating.
β Cons: Only 2 relays; serial adapter needed; generic seller.
π― Verdict: The ESP32 relay board for vehicles, solar and 12/24/48 V systems.
π Detailed Reviews: Ready-Made Smart Relays
If you’d rather not build your own board, Shelly’s smart relays are built on Espressif chips, fit inside wall boxes or DIN-rail panels, and come with certified power supplies and enclosures. They work out of the box with Home Assistant, Alexa and Google Home, and many models can be reflashed with ESPHome if you prefer local firmware.
π BEST READY-MADE SMART RELAY Β· β 4.6/510. Shelly 1 Gen3 Smart Relay (4-Pack)
Wi-Fi + Matter Β· 1 channel, 16 A Β· dry contacts Β· Bluetooth gateway Β· fits standard wall boxes
Buy Here β

With over 1,200 ratings (about 4.6 stars), the Shelly 1 Gen3 is the most popular smart relay in this guide. It’s a tiny 16 A, single-channel relay with dry contacts that fits behind a light switch or inside a socket box, connects over Wi-Fi and Matter, and doubles as a Bluetooth gateway. Dry contacts mean it can switch a garage door opener, boiler or low-voltage circuit as well as mains lighting. It works locally with Home Assistant, and the Shelly community documents ESPHome flashing for Gen3 devices. This listing is a 4-pack. As with any in-wall device, installation should follow local electrical code.
β
Pros: Huge review base; Matter; dry contacts; fits in wall boxes.
β Cons: Single channel; reflashing voids warranty.
π― Verdict: The easiest way to add certified, Espressif-based relays behind your switches.
π€ BEST FOR TIGHT WALL BOXES Β· β 4.5/511. Shelly 1 Mini Gen4 Smart Relay
Wi-Fi, Zigbee & Matter Β· 1 channel, 8 A Β· dry contacts Β· upgraded processor with 8 MB memory Β· ultra-compact
Buy Here β

The Shelly 1 Mini Gen4 shrinks the relay even further for shallow wall boxes and adds Zigbee to Wi-Fi and Matter, so it can join a Zigbee network or work over Wi-Fi with no hub required. Shelly says the Gen4 platform uses an upgraded processor with 8 MB of memory for faster, more reliable operation. It switches loads up to 8 A through dry contacts, which is plenty for lighting circuits and small appliances. It has about 4.5 stars from 840+ ratings.
β
Pros: Wi-Fi + Zigbee + Matter; very small; strong reviews.
β Cons: 8 A limit; newer platform for custom firmware.
π― Verdict: The smart relay to choose when space behind the switch is tight.
ποΈ BEST DIN-RAIL SMART RELAY Β· β 4.5/512. Shelly Pro 1 DIN-Rail Smart Relay
Wi-Fi + LAN Β· 1 channel, 16 A Β· potential-free contacts Β· Bluetooth gateway Β· DIN-rail mount
Buy Here β

For a consumer unit or distribution board, the Shelly Pro 1 is a professional-style DIN-rail relay with both LAN and Wi-Fi, a 16 A potential-free contact and a Bluetooth gateway (about 4.6 stars from 443 ratings). Wired Ethernet makes it more dependable than in-wall Wi-Fi relays inside a metal cabinet, and it suits lighting circuits, water heaters and HVAC equipment in homes and small commercial sites. It integrates with Home Assistant, Alexa and Google Home without a hub. Installation in a distribution board must be done by a qualified electrician.
β
Pros: DIN rail; LAN + Wi-Fi; 16 A; strong reviews.
β Cons: Professional install required; one channel.
π― Verdict: The best ready-made relay for a DIN-rail panel with wired networking.
π How to Choose Your ESP32 Relay Board
π₯
Permanent multi-circuit install?
A Waveshare industrial 6 or 8-channel board with isolation and RS485.
π
Learning relay control?
The LILYGO T-Relay on 5 V with low-voltage loads.
π
Behind a light switch?
A Shelly 1 Gen3, or the 1 Mini Gen4 for shallow boxes.
ποΈ
In a DIN-rail panel?
The Waveshare 1-channel in its rail case, or the Shelly Pro 1.
π
12, 24 or 48 V system?
The 2-channel DC 5β60 V board or the DORHEA 8-channel.
π°
Tight budget, enclosed project?
The DORHEA or ACEIRMC 4-channel boards.
βοΈ Key Specs Compared: Top 5 Relay Boards
| Spec | Waveshare 6-Ch | LILYGO T-Relay | Waveshare 8-Ch | Waveshare 8-Ch PoE | Waveshare 1-Ch |
|---|
| Chip | ESP32-S3 | ESP32-WROVER-B | ESP32-S3 | ESP32-S3 | ESP32-S3 |
| Relays | 6 | 4 | 8 β | 8 β | 1 |
| RS485 | Isolated | No | Isolated | Yes | Yes |
| Ethernet | No | No | No | PoE β | No |
| Enclosure | See listing | Bare PCB | See listing | See listing | Rail-mount case β |
| Amazon Rating | 4.6β
(75) β | 4.0β
(41) | 4.8β
(13) | 5.0β
(9) | 5.0β
(5) |
Specs and ratings come from the live Amazon listings and manufacturer pages. “See listing” means the value isn’t clearly stated. Always confirm relay ratings and power input before buying.
β Frequently Asked Questions
Can I use these boards with ESPHome and Home Assistant?
Yes. Any ESP32 relay board can run ESPHome: each relay becomes a switch entity driven by a GPIO, and Home Assistant discovers the device automatically. Check the board’s documentation for which GPIO drives each relay, and set the relays to restore a safe state (usually off) after a power cut.
Is it safe to switch mains voltage with an ESP32 relay board?
Only when it’s installed correctly: a suitable enclosure, proper fusing, correct wire gauges, separation between mains and low-voltage wiring, and compliance with local electrical codes. If you’re not qualified, have an electrician do the mains side. Certified products like Shelly relays are designed and tested for in-wall installation, which bare dev boards are not.
Can a 10 A relay run a pump or motor?
Small ones, yes, but motors and compressors draw several times their running current at start-up, which wears relay contacts quickly. For pumps, heaters and air conditioners, use the ESP32 relay to switch a properly rated contactor, and fit a snubber or flyback diode on inductive DC loads such as solenoid valves.
What is RS485 used for on these boards?
RS485 is a robust, long-distance serial bus used by Modbus RTU devices such as energy meters, temperature sensors, VFDs and solar inverters. With an RS485 port, the ESP32 can read those devices and switch relays based on their values, for example turning off a load when solar output drops.
How do I program a relay board without USB?
Disconnect all mains power first, then connect a 3.3 V USB-to-serial adapter to the board’s TX, RX and GND pins, hold the programming (IO0) button while resetting, and upload. After the first flash, ESPHome and Arduino OTA updates let you update firmware over Wi-Fi without opening the enclosure.
π Final Verdict: Best ESP32 Relay Board for Every Project
The right relay board for your automation:
π₯ Best Overall: Waveshare Industrial 6-Channel ESP32-S3 Relay
Buy Here βπ Best 8-Channel: Waveshare Industrial 8-Channel ESP32-S3 Relay
Buy Here βπ Best Ready-Made Smart Relay: Shelly 1 Gen3 (4-pack)
Buy Here βποΈ Best for DIN Rail: Waveshare 1-Channel ESP32-S3 Relay
Buy Here βFor permanent installations, a Waveshare industrial ESP32-S3 relay module is worth the extra cost: real isolation, RS485 and a choice of 1, 6 or 8 channels. If you’re learning, start safely with the LILYGO T-Relay on 5 V, and if you just want smart switches behind your existing light switches, Shelly’s Espressif-based relays are certified, compact and Home Assistant friendly. Whatever you choose, treat mains wiring with respect and get help from an electrician when in doubt. To write your own relay firmware, start with our ESP32 GPIO tutorial, then add remote control with our web server and MQTT client tutorials. For wired controllers, see our ESP32 Ethernet and PoE guide, and for every chip, our ESP32 chip comparison hub.
π¬ Automating lights, irrigation, a gate or a workshop? Tell us how many loads you need to switch and what voltage they run on in the comments below, and we’ll suggest the right ESP32 relay board.
All Amazon links above use our affiliate tag (esp32tutorials-20). Purchasing through them supports esp32tutorials.com at no extra cost to you. Prices and availability change frequently, so always confirm the current price on Amazon before buying.
We are a team of experienced Embedded Software Developers with skills in developing Embedded Linux, RTOS, and IoT products from scratch to deployment with a demonstrated history of working in the embedded software industry. Contact us for your projects: admin@esp32tutorials.com