Freestanding metallic nanowires attached to a metallic substrate are
disclosed. A method of creating the nanowire structure using an anodized
layer is presented. In one embodiment an optical SERS sensor is formed.
The sensor head has at least one array of nanowires chemically
functionalized to recognize molecules of interest. A method of forming a
SERS sensor and using the sensor to analyze a sample is presented.