How to connect a 3-wire modbus device to Arduino Portenta UART?

Hello,
I am looking to connect a sensor that uses a tricky 3-wire modbus protocol to a serial UART on the arduino portenta. Any ideas? I am lost.