It gets the energy it needs to run from small temperature changes and atmospheric pressure changes in the environment, and can run for years without human intervention.