Using Stepper Motor & potentiometer to bring the balloon move around others destinations  ( inspired by Moe floating doggie snack!! )

Here is the code :
#define DIR_PIN 2
#define STEP_PIN 3
#define anaPin A0
int sensorValue = 0;

void setup() {
pinMode(DIR_PIN, OUTPUT);
pinMode(STEP_PIN, OUTPUT);
pinMode(anaPin, INPUT );
}

void loop(){

sensorValue = analogRead(anaPin);

//rotate a specific number of degrees
if ( sensorValue >=0 && sensorValue <= 1023) {
sensorValue = sensorValue+1;

}

rotate(sensorValue*8, .1);
delay(100);
rotate(-sensorValue*8, .1);
delay(1000);

}

void rotate(int steps, float speed){
//rotate a specific number of microsteps (8 microsteps per step) – (negitive for reverse movement)
//speed is any number from .01 -> 1 with 1 being fastest – Slower is stronger
int dir = (steps > 0)? HIGH:LOW;
steps = abs(steps);

digitalWrite(DIR_PIN,dir);

float usDelay = (1/speed) * 100;

for(int i=0; i < steps; i++){
digitalWrite(STEP_PIN, HIGH);
delayMicroseconds(usDelay);

digitalWrite(STEP_PIN, LOW);
delayMicroseconds(usDelay);
}
}

void rotateDeg(float deg, float speed){
//rotate a specific number of degrees (negitive for reverse movement)
//speed is any number from .01 -> 1 with 1 being fastest – Slower is stronger
int dir = (deg > 0)? HIGH:LOW;
digitalWrite(DIR_PIN,dir);

int steps = abs(deg)*(1/0.225);
float usDelay = (1/speed) * 70;

for(int i=0; i < steps; i++){
digitalWrite(STEP_PIN, HIGH);
delayMicroseconds(usDelay);

digitalWrite(STEP_PIN, LOW);
delayMicroseconds(usDelay);
}
delay(1000);
}