You can use our Scan Barcodes on Airtable automation for this! Here's how:
Select the table used by your Airtable form
Enter the Airtable Form URL
Choose the field that should hold the scanned barcode.
Use the Barcode Scanner URL to access the barcode scanner.
Your users will then access the barcode scanner and scan their barcode, after which they will be redirected to your Airtable form with the barcode field prefilled.