From thermodynamics to thermometry with single-atom devices