James P. Joule's experiments demonstrated the relationship between electric current flow through a resistor and the heat generated, leading to Joule's Law of Heating.