barcode reader link to calc

How can I hook up to a barcode reader?

My usb barcoder reader automatically connects to calc and displays the barcode label value. I think I may be able to make it work.