Print quality: contrast and quiet zones
Without blank margins on both sides the scanner cannot find where the code starts.
Every barcode needs a clear margin without marks (the quiet zone) on both sides. Do not crowd it with text, borders or the label edge.
Contrast matters too: black bars on a white background. Red bars or red backgrounds can be invisible to many scanners.