     update_config(config.is_stale());
     cycle = false;
     // Wait till the next time
-    delay(2000);
+    delay(interval_ms);
 }

#include "Helium.h"
#include "HeliumUtil.h"
#include "ArduinoJson.h"


#define CHANNEL_NAME "Helium MQTT"
#define CONFIG_VAR "channel.config_var"

Helium  helium(&atom_serial);
Channel channel(&helium);
Config  config(&channel);

int32_t config_var; //CONFIGURATION VARIABLE
int state = 0;
bool cycle = false; 
int32_t reading_1;
int32_t reading_2;

    fifth
};

States state;

void
update_config(bool stale)
{
    if (stale)
    {
        DBG_PRINT(F("Fetching Config - "));
        int status = config.get(CONFIG_VAR, &interval_ms, 0);
        report_status(status);

        if (status == helium_status_OK)
        {
            DBG_PRINT(F("Updating Config - "));
            status = config.set(CONFIG_VAR, interval_ms);
            report_status(status);
        }
    }
