Usually, a sundial is installed at ground level to get maximum sun rays. But some are installed on the wall of a building like this one, the Hochzeitsturm sundial – Mathildenhöhe – Darmstadt, Germany. There are several types of sundials as you will progress on this page. Wikipedia has also a good article on the subject.