@robertober This is probably due to a long time (> 1s) spent in setup() due to which the watchdog timer is resetting the chip. Check this page for more info: github-issue-WDT