by comparing electrical values representing the speeds