// Denne metode starter/stopper pulsmåling og skal initialiseres af start/stop knappen på pulsmålerkassen.
        public void StartReading()
        {
            if (startBool == true)
            {
                _rpi.wait(250);
                _starttid = DateTime.Now;
                puls.StartPuls();
                startBool = false;
                _pwm.SetPWM(99);
            }
            else if (startBool == false)
            {
                _rpi.wait(250);
                _stoptid  = DateTime.Now;
                startBool = true;
                antalPuls = puls.ReadPuls();

                _meassurement = new Meassurement(_starttid, _stoptid, antalPuls);

                _pwm.SetPWM(20);
            }
        }