added sensor multithreading