A method of making a sensor comprises substantially laterally growing at least one nanowire having at least two segments between two electrodes, whereby a junction or connection is formed between the at least two segments; and establishing a sensing material adjacent to the junction or connection, and adjacent to at least a portion of each of the at least two segments, wherein the sensing material has at least two states.