An online energy audit system based on Electromechanical to Internet of Things (EM2loT) and for use in a building, comprising at least one versatile device and data management unit (DMU) adapted and configured for connecting, interacting, intercommunicating with each of energy metering devices, energy consuming devices, and / or environmental sensors installed in the building and manipulating firstdata received and transmitted therebetween by making use protocols including RS232, RS485, MODBUS, RTU, BACnet, Lonworks, KNX, M-BUS, and / or CAN; and for outputting and sending a second data derived from the first data in a dedicated format with TCP / IP protocol and / or UDP / IP protocol to a remote server or control management apparatus for performing system control and data analysis operations for enabling an online and real-time energy audit for the building.