OK. you may be able to smooth potPinL by doing something like this:
#include "HystFilter.h"
. . .
HystFilter potL( 1024, 32, 10 ) ; // 10 bit ADC = 1024, 32 discrete output values required, margin = 10 units (of 1024)
. . .
// and replacing analogRead(potPinL) with:
( 32 * potL.getOutputLevel( analogRead( potPinL ) ) )
You have to copy the HystFilter files into the sketch directory as explained in #25 in the link already supplied.
You then should not need the smoothing and can tune the resolution as required.