In the present research work we have examined the biosensing capabilities of one-dimensional photonic crystals with defects for the detection and sensing of malaria infection in humans by investigating blood samples containing red blood cells. This theoretical scheme utilizes a transfer matrix formulation in addition to MATLAB software under normal incidence conditions. The purpose of considering normal incidence is to rule out the difficulties associated with oblique incidence. We have examined the performance of various structures of cavity layer thicknesses 1000 nm, 2200 nm, 3000 nm and 5000 nm. The comparison between the performances of various structures of different cavity thickness helps us to select the structure of particular cavity thicknesses giving optimum biosensing performance. Thus, the proper selection of cavity thickness is one of the most necessary requirements because it also decides how much volume of the blood sample has to be poured into the cavity to produce results of high accuracy. Moreover, the sensing and detection capabilities of the proposed design have been evaluated by examining the sensitivity, figure of merit and quality factor values of the design, corresponding to optimum cavity thickness.