Hello! I'm looking to install an alarm system on a Grimme potato planter. It has 6 conveyors with hi/low capacitive sensors sitting next to them. They read the cups that are on the belt that carry the potatoes to the ground. The sensors purpose is to flash a light if it sees a state change, caused by the cups. Since there are 6 sensors, and the belt is spinning at about 1 cup per second, the lights are annoying.
However they are still useful. They let us see if there is a jam in one of the conveyors. If there is no state change, a light would be off. Potatoes won't be put in the ground for that row.
What I am trying to do is read the state change of all 6 inputs. I need to monitor each one and send an alarm to an LED that would show that there is a jam if there was no state change. My idea is to start a timer after each pulse and if either the on or off state of each signal stayed on longer than 1000 ms the LED would turn on.
My question is, how can I format an array to read 6 digital inputs at the same time and start and restart a timer for each pulse?