   CREDENTIALS:
   Author: Libor Gabaj
 */
-#define PARTICLE_CLOUD              // Comment to totally ignore Particle Cloud
+// #define PARTICLE_CLOUD              // Comment to totally ignore Particle Cloud
 // #define PHOTON_PUBLISH_DEBUG        // Uncomment to publish debug events to Particle Cloud
 #define PHOTON_PUBLISH_VALUE        // Uncomment to publish regular events to Particle Cloud
 

#endif


//-------------------------------------------------------------------------
// Publishing to Blynk
//-------------------------------------------------------------------------
#ifdef BLYNK_CLOUD
void publishBlynk()
{
#if defined(BLYNK_NOTIFY_TEMP) || defined(BLYNK_SIGNAL_TEMP)
#ifdef BLYNK_NOTIFY_TEMP
    static byte tempStatusOld = tempStatus;
#endif
    static float tempValueOld = tempValue;
    static unsigned long timeStamp;
    if (millis() - timeStamp >= PERIOD_PUBLISH_BLYNK)

#endif


#ifdef THINGSPEAK_CLOUD
//-------------------------------------------------------------------------
// Publishing to ThingSpeak
//-------------------------------------------------------------------------
void publishThingspeak()
{
    static float tempValueOld = tempValue;
    static unsigned long timeStamp;
    if (millis() - timeStamp >= PERIOD_PUBLISH_THINGSPEAK)
    {
