This board is powered by Flyback converter, converting 120VAC to 5VDC to power the ESP32 microcontroller. The onboard temperture sensor and montion sensor would be used for smart home configrations
This project uses Kicad to draw schematic and PCB You can download Kicad and open SLS_rev1.pro
I used digikey kicad Library to place most of the components: https://www.digikey.ca/en/resources/design-tools/kicad
I wrote some blog post talk about flyback controller, you can check them out below: