     }
     else
     {
-      th_Val[2].r_t = ((float) r_h * thErrOFF); 
+      th_Val[2].r_t = ((float) r_h * thErrOFF);
       th_Val[2].g_t = ((float) g_h * thErrON);
       th_Val[2].b_t = ((float) b_h * thErrOFF);
       break;
     }
   }
-  while(g > th_Val[0].g_t) //wait until green is LOW
-  {
-    tcs.getRawData(&r, &g, &b, &c); 
+  while (g > th_Val[0].g_t) //wait until green is LOW
+  {
+    tcs.getRawData(&r, &g, &b, &c);
   }
   Serial.print(".");
   //00B
-   while(b < th_Val[0].b_t)
+  while (b < th_Val[0].b_t)
   {
     tcs.getRawData(&r, &g, &b, &c); //wait until blue is HIGH
   }
-  delay(setupWaitTime); 
+  delay(setupWaitTime);
   //set threshold for blue high
   r_h = g_h = b_h = 0;
-  while(true)
+  while (true)
   {
     tcs.getRawData(&r, &g, &b, &c); //get env info
-    if(b > b_h)
+    if (b > b_h)
     {
       r_h = r;
       g_h = g;

  th_Val[5].bits[2] = 1;
  th_Val[6].bits[0] = 0; //values for GB
  th_Val[6].bits[1] = 1;
  th_Val[6].bits[2] = 1; 
  th_Val[7].bits[0] = 1; //values for RGB
  th_Val[7].bits[1] = 1;
  th_Val[7].bits[2] = 1;

#define redONtime 20 //(ms) 
#define redOFFtime 20 //(ms)
#define trnsDELAY 0 //(ms)
#define ledContol "MODE_ledC" //open led control modes

void flashDotOrDash(int color, bool dotOrDash);
void synchronization();
