public static SensorData Convert(this SensorDataEntity dataEntity, string productName)
        {
            if (dataEntity.DataType == (byte)SensorType.FileSensor)
            {
                dataEntity = dataEntity.ConvertToFileSensorBytes();
            }

            return(new()
            {
                Path = dataEntity.Path,
                SensorType = (SensorType)dataEntity.DataType,
                Product = productName,
                Time = dataEntity.TimeCollected,
                StringValue = SensorDataPropertiesBuilder.GetStringValue(dataEntity),
                ShortStringValue = SensorDataPropertiesBuilder.GetShortStringValue(dataEntity),
                Status = (SensorStatus)dataEntity.Status
            });
        }