Four fluorescent 2D Zn-MOFs based on a flexible triangular ligand and linear N-donor ligands are hydrothermally prepared and used to detect nitrobenzene in aqueous solution with high sensitivity, demonstrating their potential as fluorescent sensors.