The Short Answer
Scientists have been observing Earth for a long time. They use NASA satellites and other instruments to collect many types of information about Earth's land, atmosphere, ocean and ice.
This information tells us that Earth's climate is getting warmer.