Its the laser for the laser cruise. A radar assembly. The eye in the front of the vehicle that detects objects and determines their position in order to automatically adjust cruise control speed to prevent collisions.
Check the switch in the hood latch. This is most common source of this concern. It can also be caused by any of the doors or rear hatch but the hood does it the most.