Two types of the brackets are for holding the servo motors and two types for the extensions and interconnections of the robotic arm. The IR sensor identifies the box and it sends the data to a microcontroller which controls the arm motion according to the height of box. The motion of the servo motor is controlled in a manner so that each box is dropped into a respective boxes place in a predetermined position. The time taken by the robotic arm for a single motion is set to approximately 0.5 seconds. Eight steps of motion of robotic arm are required for a box to be picked up and to be dropped in the correct basket. That includes motion of arm from the default position, picking a box, motion to the correct basket, dropping the box to the basket and return to the default position. The number of steps taken by the arm to pick the box and drop the box counts to seven steps and from there to back to default position needed one step.