 void checkSoundState(int pin, int level);
 void sendSoundState(int pin, int state);
 void sendSoundLevel(int pin, int level);
+void turnOffMonitoring();
 
 /* Variables -----------------------------------------------------------------*/
-#define NodeSerial Serial1 // makes it a little easier to read the code :-) NodeSerial is the serial port that communicates with Node.js, accesible as /dev/ttyATH0 in Linux
+// #define NodeSerial Serial1 // makes it a little easier to read the code :-) NodeSerial is the serial port that communicates with Node.js, accesible as /dev/ttyATH0 in Linux
+#define NodeSerial Serial // connect directly with laptop (for debugging purposes)
 
 int incomingByte = 0;
 

      checkSoundState(pin, soundValues[pin]);
      
      // send sound level (if required):
      sendSoundLevel(pin, soundValues[pin]);
    }
  }
  

    
    // register every led pin as output:
    pinMode(ledPins[pin], OUTPUT);
  }
  
  while (!NodeSerial); //hang till NodeSerial is up
