This work uses infrared physical properties to induce objects. And test results determine whether stepper motor wil run. The infrared sensor is not direct in contact with the measured object. There is no friction. The system has high sensitivity and accuracy. So it can be applied in production lines and to monitor the status of devices which is sensitive of temperature, such as engines.