Abstract: A nanostructure device is provided and performs dual functions as a nano-switching/sensing device. The nanostructure device includes a doped semiconducting substrate, an insulating layer disposed on the doped semiconducting substrate, an electrode formed on the insulating layer, and at least one polymer nanofiber deposited on the electrode. The at least one polymer nanofiber provides an electrical connection between the electrode and the substrate and is the electroactive element in the device.