First I scaled down the pencil sketch as much as possible, without losing too much details. I drew the outline roughly first and made a few proportion adjustments. Afterwards I cleaned up the outline. The most common way is to avoid jumbled pixels and zooming out a lot to see if the lines look smooth. It takes a bit of practice, but for bigger drawings tiny outline mistakes become less visible.