/// <summary>
        /// Gets the value depending on the current mode
        /// </summary>
        /// <returns>value</returns>
        public async Task <int> GetValue()
        {
            //Documentation is wrong should be reverse getChanges = Bump and Get_bump = Touch
            int value = (Mode == TouchSensorMode.Bump) ? await InputMethods.GetChanges(Socket, PortNumber) : await InputMethods.GetBumps(Socket, PortNumber);

            Value = value;
            return(value);
        }