Pull one value from a data stream

bz26:
What is my problem here? How can I read at a specified frequency of 1Hz when I have a continuous stream of data?

Read 10 times but either only use one of those or average the 10 but read to clear what gets sent.