Smart recycling machine