Logic Level Translator with series resistors
Better to use a couple of ICs. 74HC4050 powered by 3.3V for 5V to 3.3V, 74AC125 powered by 5V for 3.3V to 5V.

TXB010x are not designed for long wire runs, altho 30cm is not that long.

Run the signal and Gnd wire inside a shielded cable, with the shield grounded at one end.
Where does the 400 ohm come from?