A donor-π-acceptor aggregation-induced emission compound serving as a portable fluorescent sensor for detection and differentiation of methanol and ethanol in the gas phase.