Snack Machine alarm GSM module send SMS

I have a snack machine with an alarm in it. It has a seperate 10 degree tilt sensor, and 2 seperate shock sensors (to detect if someone hits or kicks the glass, one of them is a controller also that times the alarm for 30 seconds).

The sensors are the
(tip = TM-10)
http://www.brwcontrol.com/categories/tip-alarms/tm10-tm15-tm25-tm45.html

The Stand alone shock sensor is VSS-0001
http://www.brwcontrol.com/categories/accessories/vss001.html

The Controller/sensor is the IIDAS 1120
http://www.brwcontrol.com/categories/iidas-controllers/c-1020.html
Wiring pdf here
http://www.brwcontrol.com/cms/products/VE-103DA-KA%20Vending%20Instruction.pdf

I run these with a 12 volt system. I plan to run a 12 volt relay off the siren power to activate the pins on the ardunio UNO.

I want to

I have the GPRS/GSM Quadband Module for Arduino (SIM900)
http://www.cooking-hacks.com/index.php/gprs-quadband-module-sim900-for-arduino.html

In their tutorial http://www.cooking-hacks.com/index.php/documentation/tutorials/arduino-gprs-gsm-quadband-sim900
They show a way to send an SMS.

What I want to find out is if there is a way to modify their code to look at more that one digital input (to be able to send different types of alarms. Like have it be able to tell me if it was just tipped or shock sensor one went off or two or any combination…

They have it setup to monitor Digital Input 2 (which is the ON switch).

Here is there code:

/*
*  Copyright (C) 2012 Libelium Comunicaciones Distribuidas S.L.
*  http://www.libelium.com
*
*  This program is free software: you can redistribute it and/or modify
*  it under the terms of the GNU General Public License as published by
*  the Free Software Foundation, either version 3 of the License, or
*  (at your option) any later version.
*
*  This program is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*  GNU General Public License for more details.
*
*  You should have received a copy of the GNU General Public License
*  along with this program.  If not, see .
*
*  Version 0.1
*  Author: Alejandro Gállego
*/


int led = 13;
int onModulePin = 2;        // the pin to switch on the module (without press on button) 

int timesToSend = 1;        // Numbers of SMS to send
int count = 0;

char phone_number[]="*********";     // ********* is the number to call

void switchModule(){
    digitalWrite(onModulePin,HIGH);
    delay(2000);
    digitalWrite(onModulePin,LOW);
}

void setup(){

    Serial.begin(115200);                // UART baud rate
    delay(2000);
    pinMode(led, OUTPUT);
    pinMode(onModulePin, OUTPUT);
    switchModule();                    // switches the module ON

    for (int i=0;i < 5;i++){
        delay(5000);
    } 

    Serial.println("AT+CMGF=1");         // sets the SMS mode to text
    delay(100);
}

void loop(){

    while (count < timesToSend){
        delay(1500);
        Serial.print("AT+CMGS=\"");     // send the SMS number
        Serial.print(phone_number);
    Serial.println("\"");
        while(Serial.read()!='>');      
        Serial.print("Hola caracola...");     // the SMS body
        delay(500);
        Serial.write(0x1A);       //sends ++
        Serial.write(0x0D);
        Serial.write(0x0A);

        delay(5000);

        count++;
    }

}

Any help would be greatly helpful.

Thanks

        while(Serial.read()!='>');      
        Serial.print("Hola caracola...");     // the SMS body

This part of the code appears to read from the phone and send to the phone. Just replace this part with code that reads from the sensors and writes to the phone.

with an if....else ????

I'm a total Noob at scripts. I can almost follow what they do but I'm totally stymied in trying to make or modify them.

Thanks