The document describes a smart system for sorting defective parts using a programmable logic controller (PLC). Reed switches are used as sensors to detect objects on conveyor belts and send signals to the PLC. Based on object height, the PLC controls DC motors to rotate belts and a pusher arm to sort objects into bins. This automated system reduces manual labor, increases sorting accuracy, and improves production efficiency compared to existing solutions. It is intended for use in small-scale industries to provide a low-cost sorting solution.