int dirPin = 8; boolean s = true; int stepperPin = 7; int condition=1; char sig; void setup() { pinMode(dirPin, OUTPUT); pinMode(stepperPin, OUTPUT); pinMode(13,OUTPUT); Serial.begin(9600); digitalWrite(13,HIGH); } void step(boolean dir,int steps){ digitalWrite(dirPin,dir); delay(50); for(int i=0;i60) && (s == false)) { if (condition==1){ step(false,8000); s=true;} } //delay (60000); }