As mentioned it’s quite possibly a fly or, as was setting mine off occasionally on one occasion, a spider.
An air conditioning cleaner bomb type thing from the likes of Halfords will also rectify if it is a bug, with the added bonus of leaving the car smelling sweetly. They’re not expensive, I...