HELP ARDUINO CODE

jessetodd67:
but the real problem here is controlling the motor speed WITH the sensor values

Give some examples of the value from the sensor and the corresponding PWM value for the motor.

...R