-int inByte = 0;         // incoming serial byte
+int led = 13;          // Internal LED / pin 13
+int inByte = 0;        // incoming serial byte
+int onMessage = 49;    // expected "on" message
+int offMessage = 48;   // expected "off" message
 
 void setup()
 {
+  // initialize the digital pin as an output.
+  pinMode(led, OUTPUT); 
+
   // start serial port at 9600 bps:
   Serial.begin(9600);
   while (!Serial) {

  if (Serial.available() > 0) {
    // get incoming byte:
    inByte = Serial.read();
  }
}


    delay(300);
  }
}

void turnOn() {
  digitalWrite(led, HIGH);  
}

void turnOff() {
  digitalWrite(led, LOW);
}
