I need to get a barcode scanner to send data to a google spreadsheet

I uploaded a screenshot of the code coding blocks I have so far that is just the barcode scanner.

Welcome Ethan.

One way to post data to GoogleSpreadsheet METRIC RAT AI2 - Google Sheets - Simple POST and GET Data or METRIC RAT AI2 - Post Data to a Google Sheet

or you can use the App Inventor Spreadsheet control if you have a Google developer account Spreadsheet

Here's a sample: