How to add rangeFinder

I want to change the lidar to Leddar Vu8 for collision avoidance…
I wonder how ardupilot detect the kinds of lidar(LeddarOne, Bebob or etc…)

Does it need driver of thelidar or just detect by serial port signal…??

what should I do for add lidar??