Sensing RI and CD