Add tracing to sensor thread.