Multifunctional Porphyrin-based dyes for cations detection in solution and thermoresponsive low-cost materials