I bought a hand-held bar code scanner a year ago and wrote some notes on Share Your Projects.
I couldn't get the WiFi or Bluetooth to work so ended up using HID Keyboard emulation dongle.
Although the dongle is in my mini-server room, the range is excellent as I can walk around my house using the scanner. I wrote a Python script that runs on a RPi-4Bs to capture input from the scanner's dongle (fitted to the Pi) and send it via MQTT to Node-RED where it is processed.
I also tried creating a Parts Inventory bot using Telegram and Node-RED. At the moment the two mini-projects are separate - when I have some spare time I suppose I should combine them.
Note A: Having a dedicated 'Barcode Node' would be useful.
Note B: Must try and find out why I gave up on the scanner's WiFi and Bluetooth features.