code: def _create_scheduler(self, save_sensors):
          
          def schedule_save():
              """Save sensors and schedule a new save."""
              save_sensors()
              scheduler = threading.Timer(10.0, schedule_save)
              scheduler.start()
              self._cancel_save = scheduler.cancel
          return schedule_save
docs: Return function to schedule saving sensors.