Well drawn, Eric, but I might add something to your description for anyone who might need it. When a photoeye, prox, limit switch, etc. senses any object that moves past it, the sensor changes state at least twice, when the object first gets sensed (leading edge) and when the object is no longer being sensed (trailing edge). Applications may call for something to happen when the object first passes or when it clears the sensor.
Further, the state of the sensor could change from on to off, or off to on, depending on the sensor and how it's set up.