detection_distance function

Measure detection distance of sound