How Does a Venus Flytrap Know When To Eat a Bug?

Smarter than the average plant.