Potentiometer regulating motor...noot easy

Ok now it works! thankyou

what abbout adding a second potentiometer?
The first one is used to regulate range of the sensor
while the second one would be needed to regulate motor speed

so that even if the sensor range is set to 1/2 i can still turn the second potentiometer and get a faster/slower rotation

to give a practical idea lets say we connect it to a fan, according to how close an object is, the fan spins at x speed, what what if i wanted to increase or decrease fan speed even with the object staying at the same distance?

I would need to increase or decrease fan speed of just a bit, not too much (like 2/10 of motor total speed) only using 2nd potentiometer