Added a sensor data receiving thread.