fitting after market air filter to a mk2.5

i’ve brought an after market air filter and it replaces the plastic filter assembly. now it will fit on to the airflow meter fine, but there’s a sensor in the filter box, maybe temp sensor? will i need to fit this somehow inside my air filter or can i leave it ouside? or even disconected?