Learning methods in engineering education should evolve to take advantage of the progress of technology. Despite being one of the most important theorems of engineering, at undergraduate level the foundations of sampling theorem are usually oversimplified, whereas at graduate level its proof is frequently presented in the context of a rigorous mathematical framework. This paper presents an interactive approach to illustrate an amenable proof of the sampling theorem through example. Apart from its practical value as a learning tool, the proof captures some mathematical subtleties that can help to understand some more advanced concepts. The goal of this work is to show that learning the sampling theorem through an interactive example of its mathematical proof can be an enjoyable and insightful experience.