@nil_orally You're experiencing a bug where user code with long delays blocks the Core-to-Cloud communications. See here:
We're working on a fix for this, but in the meantime if you keep your loop() short (no more than a few seconds), that should resolve your issues.