/// <summary>
        /// Starts sensor and registers listener to a sensor
        /// </summary>
        /// <param name="listener">Event handler to listen sensor events</param>
        public void Start(EventHandler <SensorEventArgs> listener)
        {
            handler = (sender, e) =>
            {
                listener?.Invoke(this,
                                 new SensorEventArgs(new List <float>()
                {
                    e.UltravioletIndex
                }));
            };

            sensor.DataUpdated += handler;
            sensor.Start();
        }
 /// <summary>
 /// Starts receiving data from sensor.
 /// </summary>
 public void Start()
 {
     _ultravioletSensor.DataUpdated += OnDataUpdated;
     _ultravioletSensor?.Start();
 }