   Serial.print("POST message: ");
   Serial.println(buffer2);
     
-  fona.HTTP_POST_start(url, F("application/json"), (uint8_t *)buffer2, strlen(buffer2), &statuscode, &response_length);
+  fona.HTTP_POST_start(url, F("application/json"), (uint8_t *)buffer2,
+                       strlen(buffer2), &statuscode, &response_length);
 
   Serial.print("Status: ");
   Serial.println(statuscode);

      }
    }

    // Use dtostrf now to print data to the buffer.

#if HUMIDITY_SENSOR
    // Add humidity
    len = strlen(buffer);

    } else {
      Serial.println(F("HTTP POST Sent!"));
    }

    disable_fona();
  }
  
  // Increase counter, sleep for 1 second.
  time_elapsed++;
  delay(1000);
}

boolean enable_fona() {
  // Set key pin to low
  pinMode(FONA_KEY, OUTPUT);
  digitalWrite(FONA_KEY, LOW);

  // Enable fona battery
  pinMode(FONA_EN_BAT, OUTPUT);
  digitalWrite(FONA_EN_BAT, HIGH);
  
  // See if the FONA is responding
  if (!fona.begin(Serial2)) {
    Serial.println(F("FONA not found"));
    return false;
  }
  Serial.println(F("FONA is OK"));

  // Configure a GPRS APN, username, and password.
  fona.setGPRSNetworkSettings(F("zap.vivo.com.br"), F(""), F(""));
  
  // It takes around 10 seconds for the FONA to initialize
  // We need to wait the initialization in order to enable GPRS
  // So...
  delay(10000);
  for (int i = 0; i < 4 && !fona.enableGPRS(true); i++)
  {
    Serial.println("FONA GPRS not enabled!");
    delay(10000);
  }
  
  if (!fona.enableNetworkTimeSync(true)) {
    Serial.println(F("Failed to enable time sync"));
  }

  Serial.println(F("Enabled fona"));

  return true;
}

void disable_fona() {
  // Set key pin to high
  pinMode(FONA_KEY, OUTPUT);
  digitalWrite(FONA_KEY, HIGH);

  // Disable fona battery
  pinMode(FONA_EN_BAT, OUTPUT);
  digitalWrite(FONA_EN_BAT, LOW);

  Serial.println(F("Disabled fona"));
}

boolean send_http_post(char *url, char *id, char *data) {
