We have designed KC868-AI ESP32 board use for sensors for home automation DIY. it is a input module based on ESP32 chip. it have 48 channel digital input ports, every input channel use optocoupler isolation, so that can work for 1000 meter with sensors or any dry contact devices. It can receive data from IR remoter and RF433MHz remoter. Support work with RS232 or 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.