   //to draw
 
   else if (tempString.startsWith("G252")) {
-    Serial.println("G52 Received");
+    mySerial.println("G52 Received");
     String commandString = tempString; //make a copy of the command
 
     if(checkCommand(tempString)) {

  stepperY.setSpeed (motorSpeedY);
  stepperZ.setSpeed (motorSpeedZ);

  pinMode (enableX, OUTPUT);
  pinMode (enableY, OUTPUT);
  pinMode (enableZ, OUTPUT);

  digitalWrite (enableX, LOW);
  digitalWrite (enableY, LOW);
  digitalWrite (enableZ, LOW);

  pinMode(LED_PIN, OUTPUT);
  Serial.begin(9600);
  while (!Serial) {
    ;
  }
  Serial.println("I'm ready!");
  mySerial.begin(9600);
  mySerial.setTimeout(20);
  Serial.setTimeout(20);
}

//=========================================================================//

void loop() {
  if (mySerial.available() > 0) {
    tempString = mySerial.readStringUntil(DELIMITER);

    if(tempString != NULL) {
      executeCommand();


  //------------------- Initialization starts ----------------------//
  if(tempString.startsWith("READY?")) {
    mySerial.println("SW Received : " + tempString);
    sendResponse("READY!");
    mySerial.println("SW Sent : READY!");
    mySerial.println();
    tempString = "";
  }
  //------------------- Initialization ends ----------------------//

  //------------------- M30 starts ----------------------//
  //M30 = stop plotting and return to home

  else if(tempString.startsWith("M30")) {
    mySerial.println("M30 Received");
    movePen(UP);
    absMoveTo(0, 0, PIXELS);
  }
  //------------------- M30 ends ----------------------//

  //-------------------------- G251 starts -----------------------//
  //G251 specifies the width and height of the image or drawing area

  else if(tempString.startsWith("G251")) {
    mySerial.println("G251 Received");
    if(checkCommand(tempString)) { //check the command
      String commandString = tempString; //create copy

