Suche mal im Forum nach "gleitender Mittelwert".
Als ganz einfache Glättung: yA = (3*yA + analogRead(A1)) >> 2; // /4
yA = (3*yA + analogRead(A1)) >> 2; // /4