How to make a condition that checks if a binary sensor is triggered within a minute?

Help how to make a condition to check that the state of the object within a minute at least once was in the status ON, I need to check in the trigger motion sensor, but provided that the other motion sensor before that also triggered not later than a minute before the one in the trigger.

See, e.g., Sensor trigger last_changed - #2 by petro