Who invented temperature?

Nobody. Temperature is a measurement of heat (or more precisely, the motion of the atoms in a substance). It's not something that someone "invented".