Please explain the code

Hi,
the following line is a low pass digital filter: it smooths the analog input value by cutting the
high frequencies, "alpha" is the time constant of the filter.

// declare a floating point variable and do some sort of conversrion from the raw sensor input to a value 

// this calculaton means something to you if you know what sensor you are using
double value = alpha * oldValue + (1-alpha)*rawValue;