   {
     tcs.getRawData(&r, &g, &b, &c);
   }
+  digitalWrite(greenLED, LOW);
+
   while(g > th_Val[0].g_t)
   {
     tcs.getRawData(&r, &g, &b, &c);

#define greenLED 3 //bacon & green led port
#define blueLED 4 //acknowledgement & blue led port
#define thErrON 0.9 //threshold multipler HIGH leds
#define thErrOFF 2 //threshold multipler LOW leds
#define setupWaitTime 1 //(ms) delay at setup time 
#define fbTime 1000 //(ms) feedback led on time
#define cycTime 1000 //(ms) feedback led off time
#define sync "MODE_sync" // keyword for start sync seq (transmitter side)

      synchronization();
    else
    {
      digitalWrite(greenLED, HIGH);

      //Serial.print("\n");
      for(int j=0; j<inputHOLD.length(); ++j)
        {
