private async Task SendPresenceTelemetry(bool isPresent, Func <object, Task> sendMessageAsync)
        {
            var presenceData = new PresenceTelemetryData
            {
                SensorValue = isPresent ? SENSOR_NO_PRESENCE_DETECTED : SENSOR_PRESENCE_DETECTED
            };

            await sendMessageAsync(presenceData);
        }
        private async Task SendPresenceTelemetry(bool isPresent, Func<object, Task> sendMessageAsync)
        {
            var presenceData = new PresenceTelemetryData
            {
                SensorValue = isPresent ? SENSOR_NO_PRESENCE_DETECTED : SENSOR_PRESENCE_DETECTED
            };

            await sendMessageAsync(presenceData);
        }