 
 void setup() {
   Serial.begin(9600);
-  pinMode(led1, OUTPUT);
-  pinMode(led2, OUTPUT);
+  pinMode(relay1, OUTPUT);
+  pinMode(relay2, OUTPUT);
 }
 
 void loop() {

      } else {
        state2 = false;
      }
      digitalWrite(led2, state2);
    }
  }
}

      } else {
        state1 = false;
      }
      digitalWrite(relay1, state1);
    } else if (incomingByte == '2') {
      Serial.println("Toggling light 2");
      if (state2 == false){
