Communicating between the sensor and master tasks