A near-infrared ratiometric fluorescent probe based on the C[double bond, length as m-dash]N double bond for monitoring SO2 and its application in biological imaging.