This plastic, pen-like electronic device with a cable:
"Old barcode reader. Unlike modern devices, the user had to slide the point (LED + photocell) across the barcode."