Daniel Bernoulli and Mikhail Lomonosov in the mid 1700s, but it wasn't until the late 1800s that it was finally formalised by Boltzmann, Gibbs, Maxwell and others. And honestly, I'm not surprised, because the actual definition of temperature is insane.
Temperature and the Sackur–Tetrode Equation