The present subject matter comprises a nanoformulation for detecting the presence of mycotoxins in food samples has a composition of bentonite clay, ZnO nanoparticles and curcumin. The formulation exhibits a negative zeta potential of -21.311mV; a dense flaky, and compact surface morphology, indicating good interaction between the bentonite layers, ZnO nanoparticles and curcumin. A method of preparation comprises synthesizing Zinc Oxide nano particles; preparation of homogeneous aqueous mixture of bentonite clay, ZnO nanoparticles and curcumin; precipitating the bentonite clay bonded with ZnO nanoparticles and curcumin; and drying to obtain a fine powder. When added to a sample with aflatoxins a color change is observed to indicate the presence of aflatoxins.