Go to Elementary POS settings:
Menu->Settings-Barcode scanner settings->Decode weight from barcode.
If the barcode is EAN13 and starts with prefix 20, Elementary POS knows that it is a barcode with a weight.
After scanning, the sales item (PLU) and its weight are detected.