add write to SensorEventQueue.cpp