        }
   }
   tcs.getRawData(&r, &g, &b, &c); //get env info
-  Serial.print(".");
   //R00
   if(r < th_Val[0].r_t) //go back if red is lower then OFF threshold
   {

void loop() 
{
  bool err = 0;
  digitalWrite(greenLED, HIGH);
  delay(fbTime);
  digitalWrite(greenLED, LOW);

#define greenLED 3 //bacon & green led port
#define blueLED 4 //acknowledgement & blue led port
#define thErrON 0.9 //threshold multipler HIGH leds
#define thErrOFF 1.3 //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)
