There are two alpha vanes on 737s, including the MAX 8, that measure angle of attack. Also we don't know the exact source of the error (in the Lion Air case; in the Egyptian Airlines case we don't know at all). The vane itself could be the source or some other part of the system.