Circuit/System Description
WARNING: This page is about a different car, the 2019 Chevrolet Malibu. However, it is still accessible from the selected car via links, so may be relevant.
The Body Control Module applies B+ to the hood ajar signal circuit and monitors the voltage to determine the position of the hood. When the hood is closed, the switch is open and voltage remains high. When the hood is open, the switch is closed and the voltage is pulled low.