float alpha = 0.7; // factor to tune value = alpha * measurement + (1-alpha) * value;