 #define STOPTIME            10000   //Expected ramp down time, in MS
  /////////
 #define STARTRELAYPIN       1      //pin locations
-#define HALLSENSOR1PIN      5       //dual hall sensors to detect rotaion
-#define HALLSENSOR2PIN      4
+#define HALLSENSORPIN      5       //hall sensor to detect rotaion
 #define SECONDS             1000    //ms in seconds 
 
 WiFiClient espClient;
 PubSubClient client(espClient);
-unsigned long now = 0 ;
-unsigned long OTAUntilMillis = 0 ;
 
-char msg[50];
 
 
 /**************************************/


uint16_t hallSensor1_count  = 0 ;
uint16_t hallSensor2_count  = 0 ;



/**************************************/
/*               SETUP                 /

/**************************************/
/*             FUNCTIONS               /
/**************************************/
void sensorPulseCount(){
pulseCount++;
// expected two pulse counts per rotation, two sensors 
}

void calculateRPM(){
if (millis() - prevMillis == 1000){
    detachInterrupt();              //disable interrupts while running calculate
    rpm = pulseCount * 60;          //converting frequency to RPM
    pulseCount = 0;                 //reset pulse counter
    prevMillis = millis();          //update prevMillis
    attachInterrupt(digitalPinToInterrupt(HALLSENSORPIN), sensorPulseCount, RISING);
    //reattach interrupt
    }
  }

void motionControlStart(){}
//enable start relay
