Head type thermocouple with explosion proof safety