Hood Ajar Switch
WARNING: This page is about a different car, the 2018 Lincoln Continental. However, it is still accessible from the selected car via links, so may be relevant.
The hood ajar switch is a single pole switch (integrated into the hood latch) that is normally closed when the hood is closed. When the hood is opened, the hood ajar switch opens to indicate an open hood.
The BCM sends a signal to the hood ajar switch, and based on the input, the BCM determines if the hood is open or closed.