Simple 4 relay irrigation scheduler

You’d need to change these two lines for the ESP32 versions:

And you’d need to review/change the GPIO pins that are used to ensure that you’re using ones that are appropriate for the ESP32 (probably GPIO18 onwards).

This topic, and the topics/links that are provided as you read on give all the info you’ll need about GPIOs on the two board types:

Pete.