A method of adding a sensor monitoring feature of at least one additional sensor that is newly installed in a computer device to a system monitoring feature that is provided by a baseboard management controller (BMC), the BMC being included in the computer device and storing a BMC firmware that contains a main program, a sensor library and a sensor data record, said method being implemented by the BMC and comprising steps of:
- A) updating the sensor library to a target sensor library that includes identification information of the at least one additional sensor, and functions used to execute the sensor monitoring feature of the at least one additional sensor, each of the functions being a sequence of program instructions that is configured to perform a specific task;
- B) loading the target sensor library by executing the main program;
- C) determining, by executing the main program, whether the sensor data record already has the identification information of the at least one additional sensor;
- D) upon determining that the sensor data record does not have the identification information of the at least one additional sensor in step C), adding the identification information of the at least one additional sensor to the sensor data record by using the main program to call a first function that is stored in the target sensor library and that is related to the at least one additional sensor;
- and
- E) initializing function variables that are stored in the target sensor library and that are related to the at least one additional sensor by using the main program to call a second function that is stored in the target sensor library and that is related to the at least one additional sensor.