akg said:
the answer is there "We don't want the motion detector to send an OFF signal after a predetermined amount of time "
ie off signal only after motion is again detected
So the OP wants the motion detector to send an OFF signal when motion is detected again, after a predetermined (amount of) time.
You see the difference? Unless you state the problem clearly you will have trouble solving it, "detects motion" is way too vague.
If I walk past a PIR sensor it will "detect motion". One second later it will "detect motion" again, because I don't walk very fast.
I understand the problem, I'm just attempting to help solve it by pointing out the loose ends. What the OP probably wants is more like:
a) If motion detected, turn on lamp and go to state b
b) If no motion detected during a 30(?) second period, go to state c
c) If motion detected, turn off lamp and got to state d
d) If not motion detected during a 30(?) second period, got back to a
Since a) and c) are almost the same, except for the on/off factor, the whole thing could be written as two states, provided that the circuit or program has the capability to toggle the lamp state.