When it is detected, it will be easy. Through the controller, the car can be controlled to turn and drive to the fire source.
It should be good to use the infrared imaging mentioned by the buddy above, but it may involve the camera. When we take part in the smart car competition for college students, it involves the camera to identify the route, which is very troublesome to do.
In fact, nothing is that simple, and the reason is easy to make sense, but when you really do it, you will find it difficult. This is the derailment of knowing and doing, and only with more practice can knowing and doing become one.