Usually sensors stop working. I had a Kensington slimblade whose tracking light just stopped turning on, for example. No amount of cleaning will bring it back.
Literally less than two years? In the EU you are probably eligible for a replacement, especially if some non-moving part (like sensors you mention below) fails.
I would prefer of course if producers made their products more sturdy (less e-waste).