In this work, a first demonstration of an hydrogel-gated organic field-effect transistor (HGOFET) for the detection of water pollutants is described. Photosynthetic cyanobacteria were entrapped in a hydrogel grafted onto the platinum gate of the transistor. Photosynthesis was continuously monitored by electroreduction of the oxygen produced or consumed by the cyanobacteria on the gate electrode, under illumination or in the dark, respectively. The presence of herbicides such as diuron and glyphosate was found to strongly affect the cyanobacteria's photosynthetic activity, which was transduced into a significant drop of the device's gate current, strongly amplified onto the drain. This study demonstrates the suitability of HGOFETs for environmental monitoring.