how to send sms alert when teemperature crosses certain limit using ESP8266

I have written code for monitoring temperature
but i want to extend this by making changes so that i may get notifications when temperature extend certain limit

HELP ME QUICKLY! :frowning: :frowning:

#include<LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
#define BLYNK_PRINT Serial
#include <ESP8266_Lib.h>

#include <BlynkSimpleShieldEsp8266.h>
float vOUT = 0.0;
float vIN = 0.0;
float R1 = 30000.0;
float R2 = 7500.0;
int value = 0;
char auth[] = "7de4fd832405400292dd5bf71f894a57";
char ssid[] = "xplore";
char pass[] = "xplore123";

#define ESP8266_BAUD 115200
int count=0;
ESP8266 wifi(&Serial);
BlynkTimer timer;
void setup()
{
lcd.begin();
Serial.begin(9600);
lcd.setCursor(0,0);
lcd.print(" WELCOME");
lcd.clear();
lcd.print("Industrial Parameter monitoring through IOT");
delay(1000);
lcd.clear();
// Set ESP8266 baud rate
Serial.begin(ESP8266_BAUD);
Blynk.begin(auth,wifi,ssid,pass);
delay(10);

timer.setInterval(100L,readSensor);
lcd.setCursor(0,0);
lcd.print(" WELCOME");
lcd.clear();
lcd.print("Industrial Parameter monitoring through IOT");
delay(1000);
lcd.clear();

}

void loop()
{
Blynk.run();
timer.run();
}
void readSensor(){
int t= analogRead(A1);
int ldr=map(t,0,1023,0,100);
int reading = analogRead(A2);
float tempC = reading*0.48828125;
value = analogRead(A3);
vOUT = (value * 5.0) / 1024.0;
vIN = vOUT / (R2/(R1+R2));
lcd.setCursor(0,0);
lcd.print(" Temperature=");
lcd.setCursor(0,1);
lcd.print(tempC);
delay(1000);
Blynk.virtualWrite(V1,tempC);
Blynk.virtualWrite(V2,ldr);
Blynk.virtualWrite(V3,vIN);
lcd.setCursor(0,0);
lcd.print(" VOLTAGE=");
lcd.setCursor(0,1);
lcd.print(vIN);
delay(1000);

lcd.setCursor(0,0);
lcd.print(" Light intensity");
lcd.setCursor(0,1);
lcd.print(ldr);
delay(1000);
lcd.clear();
}

this

HELP ME QUICKLY! :frowning: :frowning:

and not respecting the forum rules for posting code will likely not get you where you want...

you did not even explain what type of notification you want... (how do you plan to send an SMS?)

(deleted)

 void readSensor(){

This is an interrupt service routine - called when the timer interrupt happens.

  lcd.setCursor(0,0);
  lcd.print(" Temperature=");
    lcd.setCursor(0,1);
  lcd.print(tempC);
  delay(1000);

You REALLY need to learn what you can, and can NOT do, in an interrupt service routine.