Thermostats in good working condition may be able to be donated. An internet search such as “donate thermostat York PA” will show organizations that accept these items for donation.
Mercury thermostats (manual tilt-switch type) contain the toxic metal mercury and are not permitted to be disposed in York County garbage. Click here to view options to manage HHW in York County. The Thermostat Recycling Corporation, https://www.thermostat-recycle.org/zipsearch/, also lists local companies that accept mercury thermostats at no charge.
Electronic and magnetic snap switch thermostats contain no mercury and can be disposed in the regular trash.