sensor thread