Make an ID system for VR

Hi! I’m trying to make a system if a player grabs an ID card and puts it to a scanner it disables an object, how would I do that with Unity C#?

This is my code right now:

using System.Collections.Generic;
using UnityEngine;

public class ModeratorIDCard : MonoBehaviour
{
    public GameObject ModeratorCardTrigger;

    private void OnCollisionEnter(Collider other)
    {
    }

}