A selective chemical sensor based on the plasmonic response of phosphinine-stabilized gold nanoparticles hosted on periodically organized mesoporous silica thin layers.