added support for callback function in sensor uc interface