Review of PCB Design Requested: AC/DC Converter to ESP32 Module to Control a Relay
Is this intended to be mass-produced and sold to consumers????
EDIT: Instead of adding fuses... since this is a one off build and won't be subject to professional testing.. please drop the AC high voltage off this board completely. You can make a truly safe design using a common wall adaptor. As a bonus, since power supplies are a common failure point, you make it way easier for future repairs to be done.
If this causes a fire because it's a home-made thing hooked directly to AC main, an insurance company may not pay out.  And you may be liable if somebody gets hurt.
As a bonus, it also will remove your concern about &quot;what to do with Earth ground&quot;!
END EDIT
The trace leading to pin #2 on U1 is very very close to Pin #1. I would move that.
Move the ground pour away from your standoffs. You could potentially get a short from a screw-head. –
Make the pads on the bridge rectifier much larger. Those are gonna be hard to take solder,and even harder to repair if you have to replace it.
Having a metal standoff screw so close to your antenna might cause problems with it's function.
Where's your fuse?  You absolutely should not use line voltage without protection.
It would be a very good idea to have a flyback diode across the relay coil to prevent voltage spikes from getting back into your board and zapping something.
Are you sure the two data lines on your radio module are supposed to be connected together???  Usually you'd have an INPUT and an OUTPUT line.
Suggestion:  Use &quot;diffuse&quot; LED's, not clear ones.  Diffuse LED's are better for indicator lights.  Clear LED's are for when you want to project light to another surface.
Another suggestion:  Print your PCB layout on paper at 1:1 scale, then lay all your components on it and make sure they fit right.