I need help with esp32

See post #4: add a yield(); in loop() so that the idleTask can feed the watchdog.

Also see this How To what NOT to do.