Everyone has their go-to flavors when it comes to assorted candies. For example, some people prefer the sweeter fruity flavors like strawberry and watermelon, while others (AKA monsters) prefer the citrusy zest of lemon and orange.
Instead of spending time picking your hands through the bag to snack on your favorite flavors, someone created a machine that does the sorting for you, and you’ll have a bowl of your favorite flavor right at your fingertips.
Mechanical engineering student Willem Pennings shared his absolutely genius candy-sorting invention on Reddit.

The 22-year-old built an incredibly genius machine that sorts Skittles and M&M’s by color.
The machine is able to sort any type of colorful regular and even-shaped candy using optical measurements from an RGB sensor.

The machine measures each piece of candy, which takes an astounding 30 milliseconds each time. The color is determined by an Arduino controller, which then sends it down the correct exit tube and container.
According to the Redditor, it takes about two to three minutes to sort a 300 g bag of Skittles or M&M’s and sorts about two pieces per second.
Feel like you’re in Willy Wonka’s factory?
Its even equipped with color-changing LED lights so you can have a little rave while you get your snacking on.

Altogether, the machine stands at 10 inches in diameter and about 12 inches in height.
For a prototype, it seriously looks like it’s ready to hit shelves at a high-end kitchenware store.
Unfortunately, you won’t find this in stores—it was totally built by hand, taking seven months of patience and dedication to complete.
If you’re a picky snacker, you can try to make your own by following Willem Pennings’ amazingly documented process.
Definitely watch his YouTube video to see it in action, and prepare to be amazed.