A sensor includes at least two electrodes, and at least one nanowire
extending substantially laterally between the electrodes. The at least
one nanowire has at least two segments with a junction or connection
formed therebetween. A sensing material changeable between at least two
states is positioned adjacent to the junction or connection, and adjacent
to at least a portion of each of the segments.