The RAINBO board accepts an analog value (output from LPFA board), adds it to the most recent ones. The top 4 values of the 10 most recent ones are averaged, and the output is the number of LEDs that are lit up.
This is the code for the RAINBO board.
The demo of this project can be seen here