Sensors Pry-Flu and Pry-R6G were found to have a wide pH range (4–12), good anti-jamming ability and can be reused. And the sensors Pry-Rhy and Pyr-R6G could be quite useful for the fabrication of sensing devices with fast and convenient detection of Ni2+ and Al3+.