A device delivers a chemical or biological agent, the device comprises an imprint molecule (IM) to be delivered by the device an electroactive molecularly imprinted polymer (EMIP) imprinted with the imprint molecule, the EMIP having a plurality of binding sites capable of binding the imprint and an electric potential producing member (EPM), the EPM being capable of producing an electric potential between the EPM and the EMIP whereby when the EMIP has a predetermined density of imprint molecule bound at the binding sites, and whereby when a sufficient potential is produced between the EPM and the EMIP, the imprint molecule is released from the binding site and thereby delivered by the device.