But the array index goes from 0 to 9, correct ? So PINS[0] == 2 and PINS[9] == 11 The problem is with PINS[8] == 10