How to program EV3 to wait for a sensor activation for at most X seconds? If the sensor is activated in the given time, begin sequence B. If it is not activated in X seconds, begin sequence A.
Explanation: My robot arrives at point X, then it waits for the ultrasonic sensor activation (if a hand arrives near the sensor - < 7 cm), but must wait only for 10 seconds. If nothing triggers the ultrasonic sensor within 10 seconds the robot must continue with sequence A. If, for example, a hand is placed in front of the ultrasonic sensor (<7CM) within 10 seconds the robot must continue with sequence B. Then when sequence B is terminated, the robot should continue with sequence A.
I have tried using loops, switches and asking Gandalf for help but with no success.