better using arduino or esp for sending data sensor to HA
if arduino i use max 3232 to connect rs232 on raspberry pi4
if using esp using mqtt but i dont know my wifi can reach the esp cause i use it on yard
ESP32 ESP-Home with Ethernet?
That would be my advice if wifi is not in range and cable is an option