https://www.chowmainsoft.com/arduino int digitalState[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; void setup() { // put your setup code here, to run once: Serial.begin(9600); for (int i = 2; i < 13; i++) { //pinMode(i, INPUT); pinMode(i, INPUT_PULLU…