Home › Forums › ARDUINO PROJECTS › HOW TO SEND AN SMS USING GSM MODEM CONNECTED TO ARDUINO › Reply To: HOW TO SEND AN SMS USING GSM MODEM CONNECTED TO ARDUINO
your code helped me a lot but can you please tell me a way of sending the values in a variable as an sms. Please revert back ASAP.
Serial.begin(2400); //Baud rate of the GSM/GPRS Module
Serial.print(“AT+CMGS=\”+91XXXXXXXXXX\”\r”); //Number to which you want to send the sms
Serial.print(“The reading at which the irrigation stopped is”+sensor_value); //The text of the message to be sent
Thanks in advance