Creating a small way to categorize a senML dataset to produce data for the Pie Chart