Text this: Internet of things energy consumption optimization in buildings: a step toward sustainability