Nature Communications, Published online: 19 June 2026; doi:10.1038/s41467-026-74238-y Most optoelectronic circuits remain constrained by conventional binary logic. Here, Lee et al. report a light-driven multi-state transistor that converts optical inputs into ternary logic states, enabling reconfigurable logic and in-sensor image processing within a single device architecture.