Firefighters risk their lives to save vulnerable people in the event of a fire. Firefighting robot designs have been proposed to reduce the loss of life for firefighters and citizens. Furthermore, currently used firefighting methods are inadequate and inefficient. In real life, fire hazards are unpredictable. It is better to extinguish the fire while it is small. This firefighting robot uses an effective fire spray extinguishing mechanism to extinguish both electrical and normal fires. This autonomous system is equipped with infrared flame sensors, microcontrollers, and ultrasonic sensors. The proposed system detects fire in all three directions, left, right, front. It has a special ability to detect and avoid obstacles. This robot reacts instantly, increasing the efficiency and success rate of firefighting. This advanced robotic fire extinguishing system detects and extinguishes fires automatically. Currently, the world has been gradually moving towards automation and self-driving cars, putting firefighters in constant mortal danger. Although many precautions are taken to prevent fires, the natural and man-madedisasters do occur on occasion. At the time of fire accident, we are forced to use hazardous human resources to save lives and extinguish flames. With the advancement of technology, particularly in robotics, it is very likely to replace humans with robots in firefighting. This would increase the efficiency of firefighters while also preventing them from endangering human lives if the firespreads quickly if not controlled. If there is a gas leak, there may even be an explosion.