plz check the prgrm that send a sms on overvoltage

//components using voltage divide crkt,gsm sim 900a,arduino

int sensorPin = A0; // select the input pin for the potentiometer
int ledPin = 13; // select the pin for the LED
int sensorValue = 0; // variable to store the value coming from the sensor
#include <SoftwareSerial.h>

SoftwareSerial mySerial(9, 10);

void setup() {
// declare the ledPin as an OUTPUT:
pinMode(ledPin, OUTPUT);
mySerial.begin(9600); // Setting the baud rate of GSM Module
Serial.begin(9600); // Setting the baud rate of Serial Monitor (Arduino)
delay(100);

}

void loop()
{
// read the value from the sensor:
sensorValue = analogRead(sensorPin*57.5);
// turn the ledPin on
digitalWrite(ledPin, HIGH);
// stop the program for milliseconds:
delay(sensorValue);
// turn the ledPin off:
digitalWrite(ledPin, LOW);
// stop the program for for milliseconds:
delay(sensorValue);
if(sensorValue>230)
Serial.write(mySerial.read());
}
void SendMessage()
{
mySerial.println("AT+CMGF=1"); //Sets the GSM Module in Text Mode
delay(1000); // Delay of 1000 milli seconds or 1 second
mySerial.println("AT+CMGS="+91xxxxxxxxxx"\r"); // Replace x with mobile number
delay(1000);
mySerial.println("over voltage detected");// The SMS text you want to send
delay(100);
mySerial.println((char)26);// ASCII code of CTRL+Z
delay(1000);
}

  Serial.write(mySerial.read());

If there is nothing to read from the mySerial device connected to the Arduino, why are you reading?

You don't REALLY have a mySerial connected to the Arduino, do you? If not, why the heck did you name the instance mySerial? What's wrong with Fred?

That code will never send an SMS, since you never call the function to do that.

ALL of your comments are useless. They state exactly what the code does. We want to know WHY you are doing things, not what you are doing. What you are doing is perfectly obvious.

  sensorValue = analogRead(sensorPin*57.5);

Reading from pin 805 is a strange thing to do. Why are you doing that?

we have made a voltage divider crkt to reduce 230 volt.its equivalent is that value given to A0 pin

is this code rrad or not?

Define "rrad"

is this code rrad or not?

If rrad == garbage, yes.

guyz plz give me a solution

guyz plz give me a solution

What is the problem? Have you dealt with ANY of the issues in Reply #1?