This document describes an automatic object sorting machine that sorts objects by color. The machine uses a TCS230 color sensor to detect the color of objects on a conveyor belt. A PIC16F628A microcontroller controls the overall process by analyzing the output frequency of the color sensor and determining the object's color. Based on the detected color, the microcontroller directs a DC motor to move a container with compartments to the appropriate section to sort the object. The machine was able to correctly sort 100 test objects into their corresponding color groups with 100% accuracy. Potential applications of this automatic color sorting technology include industrial sorting of items like bricks, tablets, and bottles.