Help what is this for a sensor

I checked the air filter today and this sensor was stuck in the side wall. Looks like a knock sensor or something. I’ve never seen it at the Ford, ev. it comes from another Fhz (mechanist left behind) or it comes from this car. I’m not satisfied with the performance and therefore I control all the possibilities, ev. this sensor is the cause. Thanks for tips