A temperature compensated refractometric biosensor in polymeric waveguides was demonstrated by integrating a vertically coupled ring resonator with a laterally coupled ring resonator playing the role of monitoring the temperature. The proposed main sensing part was evaluated by observing the concentration of an aqueous glucose solution, and it was found to work decently around room temperature, yielding the sensitivity of ~120 pm/(g/dL), and the temperature monitoring part offered a temperature sensitivity of -172 pm/degC. With the help of the temperature compensation, the measurement error of the main sensor resulting from the temperature variation was substantially reduced from 1.33 (g/dL)/degC down to 0.03 (g/dL)/degC.