Rangefinder in AUTO MODE

Hi, I’m Simone and I’m new to the group. I am working on Arduplane 4.x.x with rangefinder. Is it possible to implement the use of it in automatic mode for low altitude flights? It is now only used for landing. Thank you.