A smart robotic arm for automatic sorting of objects with different tags