I am studying this PLC project that uses an ESP32 with DC/DC converters, 8 digital inputs, 4 analog inputs, and 10 relay outputs:
https://www.pcbway.com/project/shareproject/PLC_ESP32_DC_DC_RLY_8_DIGITAL_INPUT_4_ANALOG_INPUT_10_RELAY_OUTPUT_80244464.html
I’m planning to build this project myself...