This elevator lifts marbles to the top of the curved runs that make up the ... Color sensing (as well as detecting empty spaces) settled on IR-based sensors commonly used in line-following robots.
In fact, the original Nintendo Switch has an IR sensor of its own, but only on the right Joy-Con controller. However, leaks appear to suggest that this time around, each Joy-Con has a sensor of ...