One-dimensional photonic crystal (1DPC) sensors have emerged as contenders for traditional surface plasmon resonance sensors, owing to their potential for the detection of bigger molecules and particles due to their higher interaction volume in the sensing medium. Two-dimensional layered nanomaterials, most notably graphene and dichalcogenides (e.g., MoS2, MoSe2, WS2, and WSe2), have shown higher refractive index sensitivity because of their absorption as well as adsorption property. The proposed configuration of 1DPC presented consists of alternate layers of the aforementioned nanomaterials and silicon. The performance parameters, namely the sensitivity, resolution, quality factor, and the evanescent field penetration depth, are calculated and compared with 1DPC having poly methyl methacrylate (PMMA) in place of silicon. Increased shift in resonance angle and quality factor are observed by replacing PMMA with silicon, but at the cost of decreased resolution. Further, our results show that although the sensitivity and quality factor of the 1DPC sensor is less than that of the conventional surface plasmon resonance sensor (SPR) with a gold thin film, it has much higher resolution and penetration depth to make it suitable for large molecules.