What does it mean when a guy stares at you from afar but as you are walking past him he turns away?

He either likes you or finds you attractive but is very shy and doesn't want to get caught on the act.Talk to him, he'll talk back!