Anyone know what plug this goes to?

Anyone have any idea what this plug goes to? I seen it not plugged into anything and have no idea where the other end of the plug goes. This is on the drivers side right next to the headlight housing.

Looks like to the hood latch I think

Could be, I had the hood latch break about a year ago and the sensor was messed up and I don’t see the sensor anymore bit somehow I don’t have the hood open light?

Yeah it’s the hood latch. The wire on my hood latch broke off so it doesn’t show the open light