How to tell if timer is "active" in an Automation?

I am using 2 sensors to mitigate false triggers. I would like to trigger a light when both sensors trigger. But I want to allow a window of time, say 5 seconds, in which if both sensors trigger the light will turn on.

How should I go about this?

I was considering each sensor triggers an Automation that will start a timer which will last 5 seconds. That this same Automation would then check if the other sensor’s 5 second timer was already running. And if so, trigger the light from off to on.

But it is the part where the Automation tests if the other Timer is running that I can not figure out. The HAOS Timer Integration web page talks about Timers having an IDLE, ACTIVE and PAUSED state. But it does not go into how to check that state from outside the Timer.

It’s that easy?
I’ll have to give this a try.
Thanks.