Multiple digital input issue?

Your code to check the button attached to pin 6 and display the qr code is only executed as part of your calibrate() function. That function only gets called when the button attached to pin 2 is pressed. I think you meant to put the pin 6/display qr code into loop() not into calibrate().