Arduino and Flight Controller communication

hi everyone,

I have a project using Arduino and Flight Controller for sending data for collision avoidance and I need help with the communication between them. so, my arduino will send the sensor data to APM and data from arduino will hijack the APM to move opposite direction

i’ve read about serial communication but still didnt understand and doesnt know where to start.

any help is appriciated

Have look here: