His so I'm currently working on a temperature sensor control project where a certain temperature will controll the speed of a dc motor. I would like the motor to run at 1000rpm when the sensor is between 25-40 degrees celsius, at 2000rpm when between 40-70 degrees celcius and 3500rpm when between 70-100 degrees celcius. I have a code written but it will not work. I have an image of both the code and the circuit below.