SMS infant temperature monitoring system using Adruino,LM35 and GSM module

Hi,
I am working on my final year project on SMS infant temperature monitoring system using Adruino,LM35 and GSM module. The system should be able to Send SMS to the mobile phone when the temperature is below or above a set value of 37 degrees Celsius. The mobile phone should also be used to set the temperature to 37 degree Celsius if if falls or exceeds the set value. I got this code from the internet. can someone please modify the code to meet the above situation. Any help will be highly appreciated.

Here is the code.

#include <SoftwareSerial.h>

SoftwareSerial SIM900(2,3); // RX, TX
float temperature;

void setup()
{
Serial.println("lm35 test 0.1.00");
Serial.begin(19200); // set the baud rate
SIM900.begin(19200); // for GSM shield
delay(20000); // give time to log on to network.
SIM900.print("ATE0\r");
SIM900.print("AT+CMGF=1\r"); // set SMS mode to text
delay(1000);
SIM900.println("AT+CNMI=2,2,0,0,0\r");
delay(1000);
Serial.println("Finished Setup Section");
}

/*
as your error information --> variable or field 'sendSMS' declared void
You should write "void sendSMS()"
*/

void sendSMS()
{
SIM900.print("AT+CMGF=1\r"); // AT command to send SMS message
delay(1000);
SIM900.println("AT + CMGS = "+254************""); // recipient's mobile number, in international format
delay(1000);
SIM900.print( " WARNING TEMPERATURE IS: ");
SIM900.print(temperature);
Serial.println(temperature);
SIM900.println( " degree Celcius");
delay(1000);
SIM900.println((char)26); // End AT command with a ^Z, ASCII code 26
delay(1000);
SIM900.println();
Serial.println("Message sent");
delay(5000); // give module time to send SMS
}

void loop()
{
int val = analogRead(0);
float voltage = val * (4.0 /1023); // compiler can optimize the constant part
temperature = voltage * 100; // 0.01V = 1C

Serial.print("Current Temp: ");
Serial.print(temperature, 2); // Reading the temperature to 1 decimal point
Serial.println("C"); // ALT-0176 => °
delay(500);

if (temperature >= 18)
{
sendSMS();
delay(5000); // wait for 5 second
}
}

Tupokal:
The mobile phone should also be used to set the temperature to 37 degree Celsius if if falls or exceeds the set value.

I don't understand that what "set the temperature" means: I doubt you mean take over the patient's homeastasis but that's what it reads like to me.

Shetland

I mean 37 degree Celsius as the required temperature. It should not fall or exceed that value.