A sensor incorporates one or more working electrodes, a counter electrode and a reference electrode. The sensor is inserted in a needle and connected to control electronics to detect the concentration of target molecules. The electrodes are arrays of nanostructures increasing the detection surface area. The nanostructures are functionalized with nucleic acids which bind to select target molecules.