 
   // Initialize serial communication.
   Serial.begin(9600);   
-  Serial.WriteLine("SerialRelay V1.0");
-  Serial.WriteLine("Ready ...");	
+  Serial.write("SerialRelay V1.0");
+  Serial.write("Ready ...");	
 }
 
 void TurnOffPins() {

void loop() {
  // read the sensor:
  if (Serial.available() > 0) {
    String inByte = Serial.readString();
      
    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;             

#define RELAY_5 6
#define RELAY_6 7
#define RELAY_7 8
#define RELAY_8 9

#define ACTIVE LOW

void setup() {
  // Initialize pins. Set all pins inactive.
