A pedagogical approach to the Boltzmann factor through experiments and simulations