Aluminium-doped nickel ferrite (NiFeAl3+) nanoflakes were synthesized using the hydrothermal method. This nanocomposite material was used to fabricate a high-performance gas sensor for detecting dimethyl methylphosphonate, a stimulant of sarin gas (nerve agent). The fabricated sensor demonstrated a minimum detection limit of 0.1 ppm with a sensing response of 1.25%. The sensor was stable between temperatures of 200°C and 250°C. The sensing response decreased as the relative humidity increased. The sensor achieved response and recovery time of 24 s and 38 s, respectively, at a concentration of 1 ppm (250°C). The fabricated sensor demonstrated sensitivity of 14.654 ppm−1. The synthesized nanocomposite material was characterized by scanning electron microscopy (SEM), x-ray diffraction (XRD), Fourier transform infrared spectroscopy and thermogravimetric analysis. The SEM analysis showed the formation of flakes and cube-like structures. The XRD pattern showed the crystalline nature of the nanocomposite.