Electrochemical sensors for agricultural application