void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
delay(5000);
}

// the loop routine runs over and over again forever:
void loop() {

Serial.println("AT");
delay(1000);
Serial.println("AT+CMGF=1");
delay(1000);
Serial.println("AT+CMGS=\"1234564654\"");
delay(1000);
Serial.print("msg sent ");
Serial.write(26);
delay(1000); // delay in between reads for stability
}