Be careful not to break the glass vial on the old thermostat, as it may contain liquid mercury, a hazardous substance. Dispose of the old thermostat at a hazardous waste facility or with a heating supply company. Never throw the old thermostat in the trash.