Using K-means clustering with Arduino