Using slider instead of potmeter, writing into old program

Hi. i have an old program where i control a stepper motor using a potmeter, but after finding out about Blynk, i would like to use the slider function instead of the potmeter.

The card i have ordered to use is an arduino mkr1k however i have not recieved my card yet, so just working on my code but without posibility to test it yet.

Question is: can this code work?

{
// read speed potentiometer
  SpeedSensorValue = analogRead(V60);
  SpeedSensorPC = float(SpeedSensorValue) / float(MaxSensor);
  SetSpeed = ((MaxSpeed * 0.95) * SpeedSensorPC) + (MaxSpeed * 0.05);
}


{
//only read potentiometers every 300ms and stagger their reading 
    //it takes about 100 micro seconds to read each pins so we dont want to read to often or at the same time or will interfere with the steeper driver.  
    if (Sensor1Delay < timenow) {
      // read speed potentiometer
      SpeedSensorValue = analogRead(V60);
      // dont redo speed/accel acalc if only a small change
      if (abs(SpeedSensorValue - OldSpeedSensorValue)>10) {
        SpeedSensorPC = float(SpeedSensorValue) / float(MaxSensor);
        SetSpeed = ((MaxSpeed * 0.95) * SpeedSensorPC) + (MaxSpeed * 0.05);
        
        stepper.setMaxSpeed(SetSpeed * modespeedadj);
        
        OldSpeedSensorValue = SpeedSensorValue;
      }
      checkrunmode();

      Sensor1Delay = timenow + 300; // wait 300ms before reading again.
    }

Simply add the BLYNK_WRITE cmd with a global in it.

BLYNK_WRITE(V1){
  SpeedSensorValue = param.asInt();
}