Send SMS when infrared sensor detect movement

Hello,
Can someone help me with my project i need to implement arduino with IR sensor.
If IR sensor detect closing of eye longer than 5 sec need to activate speaker and if detect closing of eye more than 10 sec need to send sms.
Here is my connection diagram.
Slika 17
Can someone help me with programming ?

Pay attention to the modem power requirements.
5V in probably doesn’t like 9V.

Get your circuit sorted first, then worry about the code.

The modem probably needs up to 2A when connecting and transmitting.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.