I am trying to detect when a voltage increase of around of 100 mV per min reduces to less than 5 mV per min.I have tried a differentiater without success. I think I need to sample the voltage maybe every 5 min,save the value and compare it with the next sample.Could you help me? My digital knowledge is limited to combinational.The circuit is operating around the 6 volt range.