A hazardous location is defined as a location where fire or explosion hazards exist due to the presence of flammable…