s6y Hershey Co S-3ASR

Hershey Co S-3ASR, filed May 9, 2006: Consent of KPMG LLP

Exhibit 23.1

Consent of Independent Registered Public Accounting Firm

The Board of Directors and Stockholders

The Hershey Company:

We consent to the use of our reports dated February 27, 2006, with respect to the consolidated balance sheets of The Hershey Company as of December 31, 2005 and 2004, and the related consolidated statements of income, cash flows and stockholders’ equity for each of the years in the three-year period ended December 31, 2005, and all related financial statement schedules, management’s assessment of the effectiveness of internal control over financial reporting as of December 31, 2005, and the effectiveness of internal control over financial reporting as of December 31, 2005, incorporated herein by reference and to the reference to our firm under the heading “Experts” in the prospectus.

Our report on the consolidated financial statements refers to the Company’s adoption of Financial Accounting Standards Board Statement of Financial Accounting Standards No. 123 (Revised 2004), Share-Based Payment, in the year ended December 31, 2005 and Financial Accounting Standards Board Interpretation No. 46, Consolidation of Variable Interest Entities, an interpretation of ARB No. 51, on June 30, 2003.

/s/ KPMG LLP

New York, New York

May 9, 2006