A peptide-based fluorescent chemosensor for measuring cadmium ions in aqueous solutions and live cells.