What are you trying to do Rudi ?
After reset i need to initialize if some sensors are connectet or not. this is important for the code in the loop.
A Connector in this case is a small box, one type is an LDR with an Control LED, other is a hall sensor with a Controll led.
In the loop i wait for input of one of this sensor boxes, selected by random.
In the selected box the led is on, for the user to see whats the next box
All is a game for R/C
So, before i initialize my "Random Machine" i need to know how much of this Sensors/LEDs are connected to the Arduino.