Electronics can not be put in the trash for the landfill here.
Our city has a special place to take electronics. I'll bet yours does too.Also maybe actrade school that teaches appliance repair?
Our dump has a drop off center for that stuff.
Contact the city or ask on a local community page what to do with your old electronics.