Devices detect and assist in the avoidance of blood vessels during a surgical procedure—to avoid rupturing these blood vessels. Devices may be any penetration sensor device (such as a dilator sensor device, hollow needle sensor device, or trocar sensor device) that penetrates the skin and subcutaneous layers to reach a target location inside the body. The device includes a sensor probe which can make optical measurements to determine various parameters of the tissue at the tip of the sensor probe. These parameters may include an optical signal level returned from tissue contacting the tip of the sensor probe, an oxygen saturation level of the tissue, a total hemoglobin concentration, a blood flow, and a pulse. Based on these parameters, the presence or absence of a blood vessel at the tip of the device can be determined while the device travels towards the target location for surgery.