A reprogrammable switch includes first phase-change material, a reference element, and a sense amplifier. The sense amplifier is coupled to the first phase-change material and the reference element and configured to compare a signal from the first phase-change material to a signal from the reference element and output a voltage signal based on the comparison.