 #define RELAY_5 6
 #define RELAY_6 7
 #define RELAY_7 8
-#define RELAY_8 13
+#define RELAY_8 9
 
-#define ACTIVE = LOW
+#define ACTIVE LOW
 
 void setup() {
   // Initialize pins. Set all pins inactive.


  // Initialize serial communication.
  Serial.begin(9600);   
  Serial.WriteLine("SerialRelay V1.0");
  Serial.WriteLine("Ready ...");	
}

void TurnOffPins() {

void loop() {
  // read the sensor:
  if (Serial.available() > 0) {
    int inByte = Serial.read();
      
    switch (inByte) { 
      case 'a':  
        TurnOffPins();
        digitalWrite(RELAY_1, ACTIVE);
	break;
      case 'b':
        TurnOffPins();
        digitalWrite(RELAY_2, ACTIVE);
	break; 
      case 'c':
        TurnOffPins();
        digitalWrite(RELAY_3, ACTIVE);
	break;
      case 'd':
        TurnOffPins();
        digitalWrite(RELAY_4, ACTIVE);
	break;
      case 'e':
        TurnOffPins();
        digitalWrite(RELAY_5, ACTIVE);
	break; 
      case 'f':
        TurnOffPins();
        digitalWrite(RELAY_6, ACTIVE);
	break; 
      case 'g':
        TurnOffPins();
        digitalWrite(RELAY_7, ACTIVE);
	break;  
      case 'h':
        TurnOffPins();
        digitalWrite(RELAY_8, ACTIVE);
	break;             
