Luminescent Logic and Sensing