Physics based thermal sensor