Smart sensors in flexible manufacturing systems