Updated: Jun 3, 2021
In this to learn step by step guide and we will show you how to make a temperature-controlled fan using Arduino, DS18B20 and interface with LCD display, and DC fan that is controlled by using PWM.
The most important part is to set the variables temp Min and temp Max with your desired values. temp Min is the temperature at which the fan starts to spin and temp Max is the temperature when the red led lights warning you that the maximum temp was reached. For example if you set temp Min at 20 and temp Max at 40 then the fan will start spinning (0%) at 20°C and reach its maximum speed (100%) at 40°C. Example: If current Temperature 35°C, then Fan Speed 85%.