Text this: Improved K-means clustering and adaptive distance threshold for energy reduction in WSN-IoTs