I'm really not sure whether this should be here for the power considerations, project guidance, or general electronics, but this seems the most likely.
I will be using a dedicated board to monitor temperature and switch a heater on and off in my hothouse. It's not about warm, but about keeping it warm enough that the tomatoes don't die (40F should suffice).
I have optically isolated 5v transformers to do this, and the programming and circuit are ready to go.
The issue is really how to mount this safely.
My current thinking is to use a blue plastic wall box to mount a regular AC socket, chop the socket end from an AC cord, wire ground to the socket with a screw and bolt, neutral normally, and hot (black) to one side of the relay, and a leftover bit of romex or the donor cord to connect from the other side to the hot side of the socket.
There is plenty of room inside the box for the relay board with about an inch of clearance (maybe fix it to the back of the box with a zip tie?).
The whole thing plugs into an outdoor GFCI socket (otherwise, I'd be inclined to use one in the box).
Any thoughts on safety that I'm missing?
For general info, the hothouse is 16'x16', treated lumber frame, with 6 mil plastic sheeting tacked on for the winter.
Irrigation is direct to plants and citrus trees with emitters--but 1/4" hose, "spider" manifolds from the underground PVC manifold, and the hose Ts are all known to fracture and spray at times . . .
Right now, the MCU is mounted on a breadboard with a DHT-22 temperature sensor and an AT-09 or similar BLE transceiver, running off an old iPhone 10W 5v adapter, which will power both the MCU at 3.3 by onboard regulation and the relay board (5v relay).
hawk