I’ve been in the same situation a few times, especially after clearing out a closet full of dead laptops and a printer that hadn’t worked since Windows 7. What worked best for me was dropping everything off at a local e-waste collection day run by the city they usually strip the parts, recycle what they can, and dispose of the hazardous stuff properly. Some computer repair shops also take old gear for parts, so it’s worth asking around before tossing anything.
If none of those options are close to you, you can look into services like
onrecycle. It’s basically another route for getting electronics handled responsibly without sending them to the dump.