A new photodetector can cleanly discriminate among four states, not just the standard two states of binary logic.