"...changes state
between uses"?
It just wouldn't make sense that you are only looking to verify that your input goes on, but if that is what you are looking for, then try the following, where Input-X is the input in question and Input-Y is a spare button, or switch, that you can use to reset the latch.
After entering the code, go flash the sensor and then go back to your monitor to check the status of "Input DID come on!"
Note: You shouldn't have to go through all of this if you have help. You should be able to simply watch the monitor while someone flashes the sensor. However, if you are working alone... maybe.
Input-X
---| |-----------( SET ) Input DID come on!
Input-Y
---| |-----------( RST ) Input DID come on!
.
On the other-hand... if you are looking to see if the input comes on when it
should not come on, then you simply need to KNOW when the input
SHOULD NOT be on. If it comes on when it
should not be on, then Latch that fact!
Input-X
SHOULD NOT
BE ON! Input-X
---| |---------| |-----( SET ) Input came on at the wrong time!
Input-Y
---| |-----------( RST ) Input came on at the wrong time!
.
Now, you should only trap the fact that the input came on only when it shouldn't have come on. In order to turn on "Input-X SHOULD NOT BE ON!" you need to know what conditional activities indicate that period when you "know" that the input should
not be on. Then, you also need to "know" when that input is
expected to come on. You must turn off "Input-X SHOULD NOT BE ON!" just a moment, or two, before the input is really expected to come on... so that you don't record a "false-positive".
You need to understand the conditional activity that occurs (time-wise) before, and after, the particular input should be on. This of course depends on your process and how you have designed your code.
By understanding your process, and having enough inputs to provide enough information... you should be able to "see" the sequence of events before, and after, thus allowing you to determine that "window" when the input should
not be on.
I have no idea what your process is... so I can't go any further... without subjecting myself to a great deal of pain.
Sooo....?