TF-Luna not detected in pixhawk 2.4.8

i recently just bought tf luna for my quadcopter to do obstacle avoidance but some how the pixhawk can’t detect the tf-luna/rangefinder. i have already tried what the documentation says but it doesn’t seems to be working. what am i doing wrong? i also have tried the tf luna before hand using arduino and it works.