Alarm with GSM comunication and HC-SR04 sensors

Hi i want to build an alarm that sends a sms to inform me the times that the detection line has been crossed after 24h.

The main problems are:

  • The device have to be on for a long time (At least 7 days) using only batteries.

  • The cost have to be "Low". The board and the sensors are cheep but the gsm module is expensive, then i thought use gsm of old cellphones but i don't know which ones can be used for that.

Thanks for your help.