I can send sms using at commands:

Code:
pause 1000
LCDOUT $Fe,01, "Sending Now.."
PAUSE 2000
serout2 Tx,84,["AT+CMGS=",34,"Put hp number here",34,13]
pause 1000
serout2 TX,84,["How are you?",26]
'pause 1000
lcdout $Fe,01, "Message sent"
PAUSE 2000
LCDOUT $Fe,01, "STOP"
stop
Now i want to write a program to receive sms. What are the codes needed to be edited/added?