Hello All,
I have auto switch for 3 Phase DOL starter with current sensor (using CT) and is working fine, i.e. is sense current and stop motor if it takes more current, it stops motor one phase failure, it working as expected, i just want to control it using ESP32 so that I read values and send it to cloud and based on that values give command to ESP32 to operate particular relay.

So, I want to remove PIC16F676 and use Arduino/ESP32. I know its hard to understand,what inputs given to PIC16F676, I want give a try.
I have auto switch for 3 Phase DOL starter with current sensor (using CT) and is working fine, i.e. is sense current and stop motor if it takes more current, it stops motor one phase failure, it working as expected, i just want to control it using ESP32 so that I read values and send it to cloud and based on that values give command to ESP32 to operate particular relay.

So, I want to remove PIC16F676 and use Arduino/ESP32. I know its hard to understand,what inputs given to PIC16F676, I want give a try.