I'm currently working on a project that relates a motor to a temperature reading (from a thermocouple).
The motor spins at different speeds according to the thermocouple,
how can I vary the speed of the motor according to the temperature? for example, from a temperature range x to y have the motor move at a certain speed as a fraction from its maximum speed. How do I initialize a maximum speed for the motor too?