RoboBurger interview question

How does a sensor work?