Developed a fluorescent probe for detecting Al3+ in cooked wheaten food based on phosphonic acid group functionalized polythiophene derivatives.