Widely utilized in the chemical industry and agriculture, hydrazine is easily absorbed by living things and can cause physical harm when in touch for an extended period of time. As a result, a novel cinnamaldehyde chalcone C5 was produced by Friedel Crafts process and aldol condensation reaction. Triphenylamine was used as the raw material for hydrazine determination in both reactions. Chalcone C5 exhibits significant AIE behavior in a mixed mixture of ethanol and water in addition to having great selectivity and a low detection limit (0.119nm) for hydrazine. The solvent effect test revealed a linear relationship between the Stokes shift of C5 in the solvent and the rise in solvent orientation polarization. It is important to note that C5 is not harmful to MCF-7 cells, mouse kidney cells, or pig kidney cells. Furthermore, research on cell imaging has demonstrated that probe C5 may be utilized to image the fluorescence of hydrazine in active MCF-7 cells.