adding running average of measured resistance

manual calculation