Added error handling for callback passed to bmp6050