Demonstation application for storing timeseries data

similarly, here you can stop iterating as soon as the RED threshold is reached.