Computer Science Homework Help

non-contact smart thermometer related question from database

 

I have the project non-contact smart thermometer everything is connected in this project the temperature is storing in SQL database but my question is that how to connect SQL server to generate data in the form of mail or SMS.you understand when you see the project what I need in that I just want to send and email or SMS as a notification when someone’s temperature exceeds from a preset value from the SQL database server. how can I do that. please give me explaination what i will use if any query of database or need to geenrate any table schema or any link where i can learn please provide me with explaination.