This cute sensor from Useful Sensors Inc can read and decode QR codes and provide the output via I2C.
This is really useful for providing a cheap and reliable input into your projects.
Original code here: https://github.com/usefulsensors/tiny_code_reader_trinkey_keyboard