Sending sensor values through Email - Temboo

Hey, to start I have contacted Temboo support alot to try and clear this issue up but they keep sending me the same answer back to allow me to run you briefly through my issue first.

Basically I have a few dynamic variables from sensors or RTC that I want to send through E-mail and SMS, I have successfully done so with just static text but as as soon as I send sensor values or a time my program falls apart.

Temboo keeps telling me it might be an issue with RAM and I can’t seem to find proof to agree with them or find proof to disagree. Is it possible that this issue is on the end of the arduino’s RAM? Maybe within the amount of Serial.print I use?

/* Setup shield-specific #include statements */
#include <Time.h>
#include <Wire.h>
#include <DS1307RTC.h>
#include <SPI.h>
#include <Dhcp.h>
#include <Dns.h>
#include <Ethernet.h>
#include <EthernetClient.h>
#include <Temboo.h>
#include “TembooAccount.h” // Contains Temboo account information

byte ethernetMACAddress = ETHERNET_SHIELD_MAC;
EthernetClient client;

// The number of times to trigger the action if the condition is met.
// We limit this so you won’t use all of your Temboo calls while testing.
int maxCalls = 10;

// The number of times this Choreo has been run so far in this sketch.
int calls = 0;
int inputPin = 8;
String Time = “”;
String Hour = “”;
String Minute = “”;
String Second = “”;
void setup() {
Serial.begin(9600);

// For debugging, wait until the serial console is connected.
delay(4000);
while(!Serial);

Serial.print(“DHCP:”);
if (Ethernet.begin(ethernetMACAddress) == 0) {
Serial.println(“FAIL”);
while(true);
}
Serial.println(“OK”);
delay(5000);

// Initialize pins
pinMode(inputPin, INPUT_PULLUP);

Serial.println(“Setup complete.\n”);
}

void loop() {
int sensorValue = digitalRead(inputPin);
Serial.println("Sensor: " + String(sensorValue));
digitalClockDisplay();

if (sensorValue == LOW) {
if (calls < maxCalls) {
Serial.println("\nTriggered! Calling /Library/Twilio/SMSMessages/SendSMS…");

runSendSMS(sensorValue);
calls++;
} else {
Serial.println("\nTriggered! Skipping the action to save Temboo calls during testing.");
Serial.println(“You can adjust or remove the calls/maxCalls if() statement to change this behavior.\n”);
}
}
delay(250);
}

void runSendSMS(int sensorValue) {
TembooChoreo SendSMSChoreo(client);

// Set Temboo account credentials
SendSMSChoreo.setAccountName(TEMBOO_ACCOUNT);
SendSMSChoreo.setAppKeyName(TEMBOO_APP_KEY_NAME);
SendSMSChoreo.setAppKey(TEMBOO_APP_KEY);

// Set Choreo inputs

String BodyValue = "Here’s the Time: " + Time;
SendSMSChoreo.addInput(“Body”, BodyValue);

// Run the Choreo
unsigned int returnCode = SendSMSChoreo.run();

// Read and print the error message
while (SendSMSChoreo.available()) {
char c = SendSMSChoreo.read();
Serial.print(c);
}
Serial.println();
SendSMSChoreo.close();
}
void digitalClockDisplay(){
// digital clock display of the time
Hour = String(hour());
Minute = String(minute());
Second = String(second());
if (minute() < 10) Minute = “0” + Minute;
if (second() < 10) Second = “0” + Second;
Time = Hour + “:” + Minute + “:” + Second;
}

Note : I removed my choreo inputs for security reasons.

I appreciate in advance all help sent my way.

Thank you

Here is the memory storage on my Arduino itself if it helps anyone with any information.