How to measure glass transition temperature