Changed from blocking code to unblocking code. Code allows other code in the main to run while the microcontroller is waiting for the returned pulse