How to compare gathered barcode with determined code