#define POWER 256 int alpha = 178; value = (alpha * measurement + (POWER - alpha) * value )/ POWER;