gsm shield

Hello

I am a arduino beginner
And i am trying to make a relay high ,by sending an sms to the arduino with gsm shield
I am using the next code :

first i verify my number
next i want to verify that message is right
And then i want to make pin 13 high

the problem is in my monitor is coming the light is on but it won’t make pin 13 high…

Can anyone help me?

This is the code:

#include “SIM900.h”
#include <SoftwareSerial.h>
#include “sms.h”
SMSGSM sms;

char number[15];

char message[180];
char pos;
char *p;
char *n;

void setup()
{
Serial.begin(9600);
if (gsm.begin(2400))
Serial.println("\nstatus=READY");
else Serial.println("\nstatus=IDLE");
};

void loop()
{
pos=sms.IsSMSPresent(SMS_UNREAD);
Serial.println((int)pos);

if((int)pos>0&&(int)pos<=20){
Serial.print(“nieuw bericht, POS=”);
Serial.println((int)pos);

number[0]=’\0’;
message[0]=’\0’;
sms.GetSMS((int)pos,number,message,180);
n=strstr(number,“0473363911”);

if(n){
Serial.println(“number right”);

p=strstr(message,“Light on”);
if(p){
Serial.println(“Light on”);
digitalWrite(13,HIGH);
}

p=strstr(message,“Light off”);

if(p){
Serial.println(“Light off”);
digitalWrite(13,LOW);
}

// sms.DeleteSMS((int)pos);

delay(5000);
}
else{
Serial.println(“number not right”);
// sms.DeleteSMS((int)pos);
}
}
sms.DeleteSMS((int)pos);
}