A new approach based on the use of polydimethylsiloxane (PDMS) membranes doped with Griess reagents for in situ determination of NO2− and NO3−- in real samples is proposed. The influence of some doping compounds, on the properties of the PDMS membranes, such as tetraethyl orthosilicate (TEOS), or/and ionic liquids (OMIM PF6) has been studied. Membrane characterization was performed. To apply the procedure to NO3− determination, dispersed Zn nanoparticles (ZnNPs) were employed. The analytical responses were the absorbance or the RGB components from digital images. Good precision (RSD < 8%) and detection limit of 0.01 and 0.5 mgL−1 for NO2− and NO3−, respectively, were achieved. The approach was satisfactory when applied to the determination of NO2− and NO3− in drinking waters, irrigation and river waters, and waters from canned and fresh vegetables. The results obtained were statistically comparable with those by using nitrate ISE or UV measurement. This approach was transferred satisfactory to 96 wells for multianalysis. This study enables the improvement in the on-site determination of NO2− and NO3− in several matrices. It is a sustainable alternative over the reagent derivatizations in solution and presents several advantages such as being versatile, simplicity, low analysis time, cost, and energy efficiency. The response can be detected visually or by portable instruments such as smartphone.