   th_Val[0].r_t = ((float) r * thErrOFF);
   th_Val[0].g_t = ((float) g * thErrOFF);
   th_Val[0].b_t = ((float) b * thErrOFF);
-  Serial.print("\nWaiting for threshold sequence or type ");
-  Serial.print(sync);
-  Serial.println(" to send threshold sequence");
+  Serial.print("\nWaiting for threshold sequence");
   uint16_t r_h, g_h, b_h;
   setupMain: //come back here untill sync seq start
   if (Serial.available() > 0) //if there is an input data

      flashDotOrDash(redLED, false);
      flashDotOrDash(blueLED, false);
      flashDotOrDash(greenLED, false);
    delay(trnsDELAY);       
  }
  Serial.println(); //for testing **************************************


void loop() 
{
  short writtenCH = 0; //to count chars before new line 
  bool err = 0;
  tcs.getRawData(&r, &g, &b, &c);
  if(g > th_Val[2].g_t)
