Don't use a separate thread here (huge waste of RAM - 2K for the stack, plus TCB, etc.), use a workq callout instead.  See e.g. the ms5611 driver for an example.