Wait for measurement to complete