Reading barcodes

take a look to this project

no libraries and its multi task you can modifies it as logic analyses or any other idea by replacing the ir receiver in Arduino

there is much to learn in this sketch despite its easy arrays, drawing lines in pattern, briny conversion, serial communication, spiting, timing and much more … you can play a lot with it