x = GetX();
if(x>-5000 && x<5000 && !isAction)
{
isAction = true;
digitalWrite(13, LOW);
}
if(x>-17000 && x<-13000 && isAction)
{
isAction = false;
digitalWrite(13, HIGH);
delay(100);
digitalWrite(13, LOW); //не выключает
Serial.println("+");
}
delay(100);