Meanwhile, the recess portion 3 communicates with the engine intake passage when the sensor device 100 is installed in the vehicle, so that the protective member 7 is exposed to the environment including moisture and substances such as gasoline and exhausted condensed gas.