A benzyltriethylammonium chloride-modified graphene field-effect transistor sensor has high sensitivity, high selectivity and rapid response for nitrate detection.