In pen-style readers, a light source and photo diode are placed in the tip of a pen. As it is dragged slowly over the barcode, the light source shines onto it and the diode measures the intensity of light shining back, and forms a waveform. Dark bars absorb light and white spaces reflect it, so the voltage waveform should be a duplicate of the barcode in a digital format. Then this can be used to look up, say, a product