We consent to the incorporation by reference in this Registration Statement on Form S-8 of our report dated March 4, 2025, relating to the financial statements and financial statement schedule of The York Water
Company, which appears in The York Water Company's Annual Report on Form 10-K for the year ended December 31, 2024.