This is an IIoT product for reducing the energy consumption of buildings. It consists of smart thermostats distributed in offices, gateways distributed in floors and a web based application, all with indigenous design. Each thermostat determines the energy needs of office for heating and cooling. Subsequently the optimal set point for the building central boiler and chiller is determined and implemented. Also, each thermostat is equipped with motion detection sensor that identifies offices with no occupants and subsequently heating or cooling utilities of offices with no occupants are turned off by smart thermostats.