Smoke Sensor + arduino uno + gsm module shield

Good day sir, you said that, when I upload the codes the GSM must not coonected to the arduino...
After that, what is the next step? When I'm done uploading the codes..
And who will be the one that triggers the arduino?

Thanks