distance sensor and timing

Its not working :neutral_face: