Detection of blood-carried volatile organic compounds (VOCs) existing in the exhaled breath of human is an attractive research point for noninvasive diagnosis of diseases. In this research, we introduce a novel application of photonic crystals (PCs) for the detection of isoprene traces in the exhaled breath as a biomarker for liver fibrosis. This idea is introduced for the first time according to the best of our knowledge. The proposed sensor structure is a one-dimensional (1D) PC constructed from a multilayer stack of two dielectric materials covered with an air cavity layer filled with the dry exhaled breath (DEB) and a thin metallic layer of Au is attached on the top surface. Hence, the proposed sensor is configured as, [prism/Au/air cavity/(GaN/SiO2)10]. The transfer matrix method and the Drude model are adopted to calculate the numerical simulations and reflection spectra of the design. The essential key for sensing isoprene levels is the resonant optical Tamm plasmon (TP) states within the photonic bandgap. The obtained numerical results are promising such as high sensitivity (S) of 0.321 nm/ppm or 278720 nm/RIU. This technique can be reducing the risk of infection during the taking of blood samples by syringe. Also, it can prevent the pain of patients. Finally, this work opens the door for the detection of many diseases by analyzing the breaths of patients based on photonic crystals.