UART constraint between ESP32 and Arduino UNO

have a look at thread communication-between-esp32-cam-and-arduino-uno
it may give you some ideas