See also https://github.com/keithhalterman/byte-4-bite-scanner for the barcode scanner app code/repo.