Scientists have shown in mice mast cells function as a sensor that signals the animals to avoid antigens, including harmful allergens . This protects them from health-threatening inflammatory reactions . Mast cells are part of the immune system, but their function is still a mystery .