Decision Making in IoT Environment through Unsupervised Learning