     // collecting data:
     
     for (int pin = 0; pin < pinCount; ++pin) {
-      sample = analogRead(pin);
+      sample = analogRead(soundPins[pin]);
       if (sample < 1024) { // toss out spurious readings
          if (sample > signalMax[pin]) {
             signalMax[pin] = sample;  // save just the max levels

const int sampleWindow = 50; // Sample window width in mS (50 mS = 20Hz)
unsigned int sample;

const int ledPins[] = {2, 3, 4, 5, 6, 7};
const int soundPins[] = {A0, A1, A2, A3, A4, A5};

const int pinCount = 6;
int soundValues[] = {0, 0, 0, 0, 0, 0};


          if(debug) Serial.print("incomming settings of pin ");
          if(debug) Serial.println(pin);
          
          digitalWrite(statusLedPin, 1); // turn on after first settings are received
          
          for (int i = 0; i < 4; ++i) {
            uint8_t firstByte;
