Stimuli-responsive polymers have attracted increasing attention over the years due to their ability to alter physiochemical properties upon external stimuli. However, many stimuli-responsive polymer-based sensors require specialized and expensive equipment, which limits their applications. Here an inexpensive and portable sensing platform of novel microarray films made of stimuli-responsive polymers is introduced for the real-time sensing of various environmental changes. When illuminated by laser light, microarray films generate diffraction patterns that can reflect and magnify variations of the periodical microstructure induced by surrounding invisible parameters in real time. Stimuli-responsive polyelectrolyte complexes are structured into micropillar arrays to monitor the pH variation and the presence of calcium ions based on reversible swelling/shrinking behaviors of the polymers. A pH hysteretic effect of the selected polyelectrolyte pair is determined and explained. Furthermore, polycaprolactone microchamber arrays are fabricated and display a thermal-driven structural change, which is exploited for photonic threshold temperature detection. Experimentally observed diffraction patterns are additionally compared with rigorous coupled-wave analysis simulations that prove that induced diffraction pattern alterations are solely caused by geometrical microstructure changes. Microarray-based diffraction patterns are a novel sensing platform with versatile sensing capabilities that will likely pave the way for the use of microarray structures as photonic sensors.