Detect a negative edge

How can I detect a negative edge?
I would need it to detect a negative edge from smart detection of a camera. This to reset in case it’s just a glitch. I would like to trigger an alarm only after x seconds.
Thx