How did the refrigeration system

The American physician John Gorrie (1803-1855) worked in Apalachicola, a port city of Florida, where the weather was scorching. To improve conditions for sailors with yellow fever, he hung ice bags in the wards. But the product, taken from distant lakes frozen in the winter, was expensive. Therefore, the doctor decided to use his knowledge of amateur physicist. In 1850, at the age of 47, he created a reservoir of water connected to a piston which, compressing and decompressing the air, robbed the internal heat. So in one fell swoop, Gorrie created the cooling system that would give rise to air-conditioning and the refrigerator. However, no bank has funded its project. Major American newspapers ridiculed the inventor. Gorrie died poor and discredited in 1855. Five years later his equipment was successfully installed on ships to transport meat from Australia to England.