How does the immune system fight scabies mites?
Found from https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3535073/

In addition to being a physical barrier, the skin is an immunological barrier63. The skin immune response is vital in wounding and infection and also modulates the commensal microbiota that colonizes the skin. Keratinocytes continuously sample the microbiota colonizing the skin surface through pattern recognition receptors (PRRs), such as Toll-like receptors (TLRs), mannose receptors and the NOD-like receptors. These receptors recognize pathogen-associated molecular patterns (PAMPs) including flagellin and nucleic acids, as well as lipopolysaccharide from Gram-negative bacteria, mannan and zymosin from fungal cell walls, and peptidoglycan and lipoteichoic acid from Gram-positive bacteria. The activation of keratinocyte PRRs by PAMPs immediately initiates the innate immune response, resulting in the secretion of antimicrobial peptides (AMPs), cytokines and chemokines. Beyond effecting an adaptive immune response, AMPs also directly kill bacteria, fungi and enveloped viruses64. Therefore, there is a constant interplay among keratinocytes, immune cells and microorganisms that is modulated by AMPs, cytokines, chemokines and microbial peptides.

While mites certainly are not fungal, viral, or bacterial, you can extrapolate the mechanisms required to prevent mite infestation being similar to those referenced above. Hope this helps!