Photonic integrated biosensors have emerged as a highly attractive alternative for biomarker detection in applications ranging from clinical diagnosis to food quality monitoring. Detecting specific target and differentiating them from interfering background effects is a crucial but challenging task nowadays. In this work, a complete system based on a dual polarization Mach-Zehnder interferometer with coherent detection is proposed to identify refractive index changes from different layers above the waveguide surface, herein, improving sensor specificity. To achieve this, a mathematical model is developed based on performing simultaneous measurements with two different polarization states. Simulation results show values of the limit of detection for each layer comparable to those reported in the state of the art.