Design and construct a car and program it to drive through a tunnel, automatically turn on its headlights when it enters the tunnel, and turning them off when it gets to the other side.


Tip: What kind of sensor would be suitable for detecting when the robot enters and exits the tunnel?