Sensors for contour measurement