Hello Aishwarya,
Have you tried the following module:
https://marketplace.mendix.com/link/component/118612
It helps you create a QR code or barcode, which you later can scan with the functionality of this module:
https://marketplace.mendix.com/link/component/117627
Hope this helps
Good luck