Unable stop program

I have run program to send sms for checking if temperature sensor has crossed a threshold but I’m not able to stop the execution what is the command to stop it?

Kindly use Ctrl+C to stop the execution.

Hello,
Since most of the programs have continuous monitoring it’s a infinite loop.In order to stop the program running you need to come out of the loop.So in the terminal just press Ctrl+C.