Under the background of the development of domestic and foreign manufacturing industries and the increasing demand for industrial products at home and abroad, and under the premise of ensuring and even further reducing the manufacturing cost of manufacturers, how to effectively detect and cool the local temperature of industrial parts is a problem worth studying. After analyzing the advantages and disadvantages of traditional manual control and gear adjustment to adjust the fan, the design will be programmed using Arduino. The fan combines infrared sensor technology to detect the presence and position of parts. A temperature sensor is also set up to detect local temperatures in real-time. A fan with automatic step-less speed change according to temperature is obtained. This fan is used for heat dissipation control of local parts in industrial production, thereby reducing the cost of manual control. It further improves control accuracy and efficiency, improves product quality, and ensures production safety.