Rav Menachem Mendel Mivitebsk wrote in Peri Hart's Bechukotay that the 10 words from which the world is created are linked to 10 occurrences of the word of G-d in Bereshit and there are the 10 sefirot. And from the sefirot, the world reach the midot.
העניין שהעשרה מאמרות הם עשר ספירות, והשתלשלות הראשון עד שמגיע לכלל המדות
I roughly understand what are sefirot, but I don't know what are midot. I know the expressions midat hadin, harachamin, 13 midot of Rachamim. They seem to be a feeling of behavior of divinity in the world. What is the link between sefirot and midot. There are names of sefirot like chesed, similar to the name of midat harachamin, or gevura similar to din. But it's not clear. Can someone explain this.