CONTROLLING WATER LEVEL WITH MPX5010DP

water level controling MPX5010DP

#define led 3 //this pin for drive relay
void setup() {
Serial.begin(9600);
pinMode(led, OUTPUT);
}
void loop() {
int sensorValue0 = analogRead(A0);

if (sensorValue0 <= 80) {//this value replace as per calibration level
digitalWrite(led, HIGH);//this output go to relay IN

}
if (sensorValue0 >= 250) {//this value replace as per calibration level
digitalWrite(led, LOW);
}
Serial.println(sensorValue0);
delay(100);
}