Here is how to turn an old smartphone camera into a QR/barcode scanner. Just install an app and start using it the same day.
Some free apps show ads. If ads bother you, look for a paid or ad-free version.
On older devices, the camera may take longer to focus. Scanning in a well-lit place makes it easier to read.