A medical sensor may be adapted to account for factors that cause irregularities in pulse oximetry measurements or other spectrophotemetric measurements. Sensors are provided with surface features that reduce the amount of outside light or shunted light that impinge the detecting elements of the sensor. The sensor is adapted to reduce the effect of outside light or shunted light on pulse oximetry measurements.