But what board type are you selecting in the IDE?
The SW input is connected to GPIO5, and GPIO4, which you’re using for the LED is connected to the relay.
That doesn’t make much sense to me.
Then why not just use the OTA without the dynamic provisioning…
Pete.