The invention discloses application of rhodamine B-based fluorescence sensor. The sensor is benzyl 3-(3',6'-bi(diethylamino)-3-oxohelix[isoindolinyl-1,9'-xanthene]-2-yl) ethyl propionate which can specially detect tin ions. The benzyl 3-(3',6'-bi(diethylamino)-3-oxohelix[isoindolinyl-1,9'-xanthene]-2-yl) ethyl propionate serves as a substrate, then MgCl2.6H2O, SnCl2.H2O, CrCl3.6H2O, AgNO3, CaCl2, NaCl, PbCl2, KCl, MnCl2.4H2O, ZnCl2, CuCl2.2H2O, LiCl.H2O, Ba(NO3)2, HgCl2, CoCl2, FeCl2.4H2O, FeCl3.6H2O, CdCl2.2.5H2O, AlCl3 and other different heavy metal ions are added, and fluorescent response occurs only when the SnCl2.H2O is added, so that the fluorescence sensor for specially detecting the tin ions is developed. The sensor has the advantages of high specificity, high sensitivity and the like and has important application potentials in the aspects of disease diagnosis and health evaluation.