This project refers to an Arduino sketch which with the help of an external temperature sensor (input device) can control the rotation speed of a DC motor (output device). Also, during the execution of the program, there is dynamic calibration as regards the input values of the temperature sensor.

For more information you can get the project itself: