My ESP crashes running my code and restarts itself

@faezehfrj, your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with your project. See About the Installation & Troubleshooting category.