In this study, 4-bromotriphenylamine, 5-formaldehyde thiophene-2-boronic acid and benzenesulfonyl hydrazide were used as materials to synthesize a novel type of Schiff base fluorescent probe molecule N'-((5-(4-(diphenylamino)phenyl) thiophen-2-yl)methylene)benzenesulfonohydrazide (BS), and its structure was characterized by nuclear magnetic resonance (NMR) and high resolution mass spectrometry (HR-MS). BS exhibited excellent solvatochromic effect and aggregationinduced emission enhancement, and had rapid recognition, high selectivity and specificity for Hg 2 + , the detection limit was as low as 2.84 × 10 À 8 M, and the response time is only 15 s. It has passed the 1 H NMR titration experiment verified its possible response mechanism. Through the good reversible performance of BS, molecular logic gate was constructed with Hg 2 + and EDTA as chemical inputs. In practical applications, polyacrylamide (PAM) doped BS (PAM-BS) could achieve highefficiency adsorption of Hg 2 + , with a removal rate of 99.93 %, and the microscopic morphology and element changes before and after PAM-BS adsorption were compared by SEM-EDS.