Trigger box and object in inventory

Hi, I have a box trigger for a keypad that opens a door if player has an object in his inventory and he enters a four digit passcode. The trigger opens the door when the player walks into it, but right now I can’t even get the box trigger to open the door with the object in inventory. The object in inventory is an enum. So the question is, how do I get it to trigger when the player has a certain object in his inventory and then allow the player input to put in the passcode. thanks for your help.