sensor to avoid collision with objects

hello. i am using pixhavk cube. i want to integrate a sensor to avoid collision with objects on my drone when flying outside. is there anyone who can help me with this? which sensor would be better to buy and how can i solve the installation?