Unreal engine5 Connect Raspberry pi with Arduino

Hi
I am doing my study rn about how can i control Unreal engine5 and Arduino with Raspberry pi5.

Rn i already made some serial communication between Arduino and Unreal einge5.

But what i really wanted to do is how can i control everything with Raspberry pi5.

Bc i want to put some LLM inside Raspberry pi and control the arduino automatically.

But rn i have some hard time with connecting between Raspberry pi and Unreal engine5.

Help me with it