Enviar por SMS: Design and implementation of an automated workpiece pattern recognition system using sensors and PLC