Intruder alarm, Arduino Yun + Ultrasonic sensor + twilio + temboo problem

Heyy,

So I'm doing a uni assignment, a form of an intruder detection device and I've kinda come across a problem. I'm using an Aduino Yun with wifi capabilities and an ultrasonic sensor, along with code I found from a youtuber (link-http://wirebeings.com/arduino-intruder-alarm.html), Matthew Hallberg.

In this tutorial, when the ultrasonic sensor is triggered, it's meant to send a notification via text msg to the number put into the code. He uses online services Twilio and Temboo, to make this happen. Twilio and Temboo are american based (? I think, this plays a factor in the error).

So the problem I had, the sensor was working fine, as shown in the serial monitor, but the notification via text just would not get sent (?). A generated number by twilio was meant to send a text to my number that I inserted in the code, again, twilio is American based, the number I used is South East Asian. I think this may be the reason the notification doesn't come in.

But I'd like to know what other things could possibly be the problem in this, and how I'd possibly solve this.

Help is very much appreciated, thanks all in advance~

It is going to be hard to help unless you share your code with us.

The code is on the link I gave, but sure, do I just share the link here? Sorry I'm not familiar with these forums,vary new to arduinos and what not.

working text code,

//WORKING TEXT CODE

#include <Bridge.h>
#include <Temboo.h>
#include "TembooAccount.h" // contains Temboo account information
#include <SoftwareSerial.h>

int numRuns = 1; // Execution count, so this doesn't run forever
int maxRuns = 5; // Maximum number of times the Choreo should be executed
int trigPin = 2;
int echoPin = 4;
long duration, cm, inches;

void setup() {
Serial.begin(9600);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
// For debugging, wait until the serial console is connected
delay(5000);
Bridge.begin();
Serial.println("Patrol Mode Initiated...");
}

void loop() {

digitalWrite(trigPin, LOW);
delayMicroseconds(1);
digitalWrite(trigPin, HIGH);
delayMicroseconds(2);
digitalWrite(trigPin, LOW);

pinMode(echoPin, INPUT);
duration = pulseIn(echoPin, HIGH);

inches = (duration / 2) / 74;
Serial.println(".....");
if (inches < 20 || inches > 500) {
Serial.println("Intruder Detected!");
Serial.println("Sending text Notification...");

if (numRuns <= maxRuns) {
Serial.println("Running SendSMS - Run #" + String(numRuns++));

TembooChoreo SendSMSChoreo;

// Invoke the Temboo client
SendSMSChoreo.begin();

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

// Set Choreo inputs
SendSMSChoreo.addInput("AuthToken", ""); // AUTH TOKEN
SendSMSChoreo.addInput("To", "+1
"); // cell number that your want the text to go to
SendSMSChoreo.addInput("From", "+1
"); // Twilio phone number
SendSMSChoreo.addInput("Body", "Intruder Detected!!!!!!"); // Message
SendSMSChoreo.addInput("AccountSID", "
**********************"); // Account SID

// Identify the Choreo to run
SendSMSChoreo.setChoreo("/Library/Twilio/SMSMessages/SendSMS");

// Run the Choreo; when results are available, print them to serial
SendSMSChoreo.run();

while(SendSMSChoreo.available()) {
char c = SendSMSChoreo.read();
Serial.print(c);
}
SendSMSChoreo.close();
}

Serial.println("Waiting...");
delay(10000); // wait 10 seconds between SendSMS calls

Serial.println("Patrol Mode Initiated...");

}//end if statement

}//ends loop

and, header file,

//Header File
//Save as TembooAccount.h

/*
IMPORTANT NOTE about TembooAccount.h

TembooAccount.h contains your Temboo account information and must be included
alongside your sketch. To do so, make a new tab in Arduino, call it TembooAccount.h,
and copy this content into it.
*/

#define TEMBOO_ACCOUNT "" // Your Temboo account name
#define TEMBOO_APP_KEY_NAME "********" // Your Temboo app key name
#define TEMBOO_APP_KEY "
*********************" // Your Temboo app key

/*
The same TembooAccount.h file settings can be used for all Temboo SDK sketches.
Keeping your account information in a separate file means you can share the
main .ino file without worrying that you forgot to delete your credentials.
*/

Ho did you manage to make the letters pink???
Are you kidding us?

There is a very easy way to post code as a code-section:
simply do a right click in the Arduino-IDE and choose "copy for forum"
the past the code into the writing-Textfield.

best regards Stefan