The electrons that come off the sample are attracted by a device called a detector. This turns them into an electrical current that is measured by a computer. It turns the current into an image on a screen.