title: Stop arduino loop when a condition is active
body: <p>I need my code to stop in the loop, i have tried to put in a break but the method sendToGCM() continues. I only want the method to be executed once, the stop while the condition</p>
  
  <pre><code>void loop()
  {
  
    // Other code here giving temp a value
  
    if (temp &gt; 22)
    {
      status = false;
      value["status"] = status;
      while (temp &gt; 22)
      {
        sendToGCM(); // Sends push notification 
        break;
      }
    }
    else 
    {
      status = true;
      value["status"] = status;
    }
  }
  </code></pre>