it must send something to the PC via RS232 and the PC must send me an SMS or email.
koossa, The SMS IO Controller will do what you need sending via sms the status of the inputs every times there is a change. Download the project at this link:
http://techni.caliti.es/blog/2008/12...ontroller.html

and read the manual to see how to use it.

Al.