A new fluorescence sensor for melamine was fabricated by combining a new fluorescent probe 7-(benzylamino)-9,9-dibutyl-9H-fluorene-2-carbaldehyde and AuNPs. This nanosensor has been applied to the determination of melamine in milk samples with satisfactory results.