In this paper, we focus on researching and building a system with the function of automatically classifying or classifying products assigned QR Code codes, applying Internet of Things technology and image processing techniques. The system collects information about the QR Code assigned on the input product from the Camera and then based on the rules that have been previously designed and programmed to stack or put the products in the desired position. Through the LabVIEW platform, the system analyzes any product image with high speed and accuracy (reaching 99%). Actual quantitative results are obtained based on conducting five specific experimental cases. The product's functions meet the requirements of the actual sorting or classification of goods, can be mass-installed at low cost, and is easy to use and maintain.