Time out feature

Is there a way to add a time out function to digital input? Example I’m waiting for Digital input 01 to be true and if the sensor doesn’t turn true in a specified time insert a if statement to perform another set of moves?

If you set up an if with continuous checking, you can do it like this:

The else statement is not really necessary, if the robot has to perform the same actions even though the sensor is false. :slight_smile:

Currently I’m waiting for the sensor to be true then perform an action, if the sensor never gets triggered the robot just waits. I want to add a time where if the sensor doesn’t turn true in x time perform some other action.

Yes. That’s what happens in the code, I sent you. You can adjust the time in the Wait.