Cannot get my code arduino correct

I have to say that I was totally baffled by this rep,y, u til I realised that it was really in response to this topic…

As you a now using different hardware, and therefore will have needed to make some changes to your code, I’d suggest that you do the following…

  1. explain exactly what type of ESP32 Dev board you are using.
  2. post your ESP32 code.
  3. explain what you see in your serial monitor when you disable your WiFi

Your 12v/5v rail and relay information meant nothing to me, as you’ve not share any info about your hardware setup.

Pete.