making use of a thermal sensor