light pen
noun [ C ]
IT ukusa pen-shaped object that uses beams of light to read bar codes (= small rectangular patterns of printed lines that store data) or that you use to touch a computer screen in order to choose information:
Outgoing inventory can be quickly checked with light pens connected to each terminal.