   // put your main code here, to run repeatedly:
   int buttonValue;
 
+  IRRemoteMeasure();
+  
+#ifdef __SUPPORT_RGBLED__
   onAnimateRGB();
+#endif //#ifdef __SUPPORT_RGBLED__
+
 #ifdef __SUPPORT_GSM_MODULE__
   softserialCheck();
 #endif // #ifdef __SUPPORT_GSM_MODULE__


  setupRTC();

}

/*

}

/******************************/
/* section RGB LED functions */
/******************************/
#ifdef __SUPPORT_RGBLED__
void setRGBvalue(byte r, byte g, byte b)
{
  analogWrite(pinRGBR, r);
