<p>A compact barcode reader is provided in which the imaging lens and a linear sensor are in a straight line path with the barcode (no bend in path). By using a wide angle lens with a short back focus, it is possible to reduce the distance between the barcode and linear sensor to a fraction of what it was in the prior art. In addition, the maximum image height and the downward projection of the sensor are reduced to a fraction of what they were in the prior art. As a result, despite the straight line optical path, compact barcode reader becomes so small that it does not interfere with the operation of the beverage maker.</p>