The MT6701 is an easy to program magnetic rotary position sensor with a high-resolution 12-bit analog, PWM, UVW, ABZ. With SPI and I2C output is 14 bit. They should provide magnetic button ...
In recent years, integrated platforms equipped with microcontrollers (with Arduino probably being the best-known brand) have been gaining popularity.