People use electricity for lighting, heating, cooling, and refrigeration and operating appliances, computers, electronics, machinery, and public transportation systems. The industrial sector generates and uses nearly all of the direct use of electricity.