A highly sensitive and selective Schiff-base probe as a colorimetric sensor for Co2+ and a fluorimetric sensor for F- and its utility in bio-imaging, molecular logic gate and real sample analysis.