Fluorescence and colorimetric solid sensors for caustic media and biogenic amine vapors have been prepared. For this purpose, several hydrazone derivatives of naphthalimides were synthesized and anchored to a photo-crosslinked membrane functionalized with acid chloride groups. The membranes were characterized using different techniques, and their thermal properties and swelling degree were determined. The new naphthalimides and the membranes were evaluated as sensors by determining the change in their spectroscopic properties of absorption and fluorescence with pH. The polymeric sensors exhibit improved stability and can be reused, as a consequence of their solid character and the reversibility of the process. Furthermore, membranes were evaluated as a sensor of trimethylamine vapors through their absorption and fluorescence bands, and the color change in the membrane showed that it could be used to detect basic media with the naked eye. Finally, membranes were packaged in Petri dishes at a controlled temperature with fresh fish bought in the local market. Then, the real chance of using the sensory materials was determined by analyzing the color change in samples.