add motionsensor thread