We have designed KC868-A128 ESP32 board use for huge INPUT and OUTPUT devices for home automation DIY. it is a input module based on ESP32 chip. it have 128 channel digital input ports, every input channel use optocoupler isolation, so that can work for 1000 meter with sensors or any dry contact devices. Support work with RS485. Made For ESPHome and easily integrate to home assistant for smart home automation project DIY. You can write any code by Arduino IDE to ESP32 wifi/bluetooth/ethernet RS485 module.