synchronised sensordata between threads
General cleanup