Electronic sensor sorts tomatoes and removes debris