It is a temperature sensor, with the metal "hat" to make it more sensitive via additional surface area. The only info missing is the temperature at which it switches, but that should be marked on the unit.
It looks like a temperature detector or you can say heat detector as well.
But it kinda looks old. I don't think these type of sensors are now available in the market.