perform send of sensor data on the main thread