Part of the board has mains voltage on it so it is dangerous to handle the board outside of a proper case while powered! It lies in your own responsibility to use proper safety precautions when working on this project!
Single board solution to power an ESP32 and use it to measure the mains frequency through an optoisolator