         
         // If different than last value, send notification.
         if (newInput != current[i]) {
-            //Serial.print(i);
-            //Serial.print(newInput ? '+' : '-');
-            //Serial.println();
-            if (newInput){
-              Serial.print(i);
-            }
-        }
+            if (newInput)
+              Serial.print('a' + i); // HIGH means laser detected -> interruption OFF
+            else
+              Serial.print('A' + i); // LOW means laser not detected -> interruption ON
+         }
         current[i] = newInput;
     }  
 
-    // wait 2 milliseconds before the next loop
-    delay(2);                     
-}
+    // wait 1 milliseconds before the next loop
+    delay(1);                     
+}

  pinMode(multiplexBit2Pin, OUTPUT);
  pinMode(multiplexBit3Pin, OUTPUT);
  pinMode(ledPin, OUTPUT);
  
  setLedMode(LED_ON, 0);
}

void loop() {
    updateLed();

    for (int i = 0; i < inputCount; ++i) {
      

    delayMicroseconds(10);  // delay 10 microseconds to allow multiplexer to stabilize.
    return analogRead(analogInPin);
}

// Type of LED modes.
const byte LED_ON = 0; // on solid
