I have a problem with my arduino code I need the sensor to be checked ever .2 sensors so the stepper speed can be updated.?

#include <Stepper.h> //New code int fsrAnalogPin = A0; // FSR is connected to analog 0 int fsrAnalogPin1 = A1; int muvmentup; int muvmentdown; int motorspeed; int finaldirection; int sensorup; // sensor to detect presure up int sensordown; //sensor to detect force down #define VCC2 5 // define pin 5 or any... show more #include <Stepper.h>
//New code
int fsrAnalogPin = A0; // FSR is connected to analog 0
int fsrAnalogPin1 = A1;
int muvmentup;
int muvmentdown;
int motorspeed;
int finaldirection;
int sensorup; // sensor to detect presure up
int sensordown; //sensor to detect force down
#define VCC2 5 // define pin 5 or any other digial pin here as VCC2

const int stepsPerRevolution = 200; // change this to fit the number of steps per revolution
// for your motor

// initialize the stepper library on pins 8 through 11:
Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11);

void setup() {

// initialize the serial port:
Serial.begin(9600);
// L298N for Robojax.com
pinMode(2, OUTPUT); // for EN1
digitalWrite(2, HIGH); // enable EN1
pinMode(3, OUTPUT); // for EN1
digitalWrite(3, HIGH); // enable EN2
}

void loop() {


sensorup = analogRead(fsrAnalogPin);
sensordown = analogRead(fsrAnalogPin1);

Serial.print("Analog reading = ");
Serial.println(finaldirection);
// used by analogWrite (0-600) with map!
muvmentup = map(sensorup, 0, 1023, 0, 1000);
muvmentdown = map(sensordown, 0,1023, 0, 1000);
finaldirection = muvmentup - muvmentdown;

// motor acelerates
// set the speed at 60 rpm:
if (finaldirection > 0) {
myStepper.setSpeed(finaldirection);
myStepper.step(stepsPerRevolution);
}
// step one revolution in one direction:
if (finaldirection < 0) {
myStepper.setSpeed(-finaldirection);
myStepper.step(-stepsPerRevolution);
}
}
0