Triggering ESP32 and Optocoupler together

Should work if relay input jumper is set to "L", though GPIO18 will be pulled up through R1 and opto LED.