RoboBurger Interview Question

How does a sensor work?