This document presents a study on developing an algorithm for fault detection and classification of a DC motor using predictive maintenance. The study involves designing a DC motor hardware system to collect sensor data on temperature, vibration, RPM, etc. This data is then processed using MATLAB's machine learning algorithms to train predictive models. Specifically, a decision tree algorithm is able to accurately classify the motor's condition as healthy or faulty with over 95% accuracy based on the sensor data. The study demonstrates how predictive maintenance can help detect potential faults in DC motors to improve performance and reduce maintenance costs.