 Glucose oxidase and iron oxide nanozymes were encapsulated within multi-compartmental hydrogels for incompatible tandem reactions.A cascade nanozyme biosensor was developed for detection of viable Enterobacter sakazakii.An integrated nanozyme of GOx@ZIF-8(NiPd) was developed for tandem catalysis.