How do ;you disconnect the hood sensor or the sensor that makes the alarm go off? on 2003 Infiniti I35

The alarm is going off at random for no reason. A random person came up to me and said he also has an infinity and his did the same thing. he disconnected his hood sensor and now has no problems. How do i do that?

Asked by for the 2003 Infiniti I35