<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def register_all(self, callback, user_data=None):
 """Register a callback for all sensors."""

        self._callback = callback
        self._callback_data = user_data