A controllable sensing ability strongly connects to complex and precise events in diagnosis and treatment. However, imposing visible light into the molecular-scale mediation of sensing processes is restricted by the lack of structural relevance. To address this critical challenge, we present the rational design, synthesis, and in vitro studies of a novel cyanostyryl-modified azulene system for green-light-mediated fast switchable acidic sensing. The advantageous features of the design include a highly efficient green-light-driven Z/E-isomerization (a quantum yield up to 61.3%) for fast erasing chromatic and luminescent expressions and a superior compatibility with control of ratiometric protonation. Significantly, these merits of the design enable the development of a microfluidic system to perform a green-light-mediated reusable sensing function toward a gastric acid analyte in a miniaturized platform. The results may provide new insights for building future integrated green materials.