Nature's Solution
The Venus flytrap counts the electrical pulses made each time trapped prey touches its trigger hairs, and only turns on digestion and sodium uptake once enough pulses arrive. This stops it wasting energy on non-food objects, because only live, struggling prey keeps setting off pulses.
How it works
Prey bends trigger hairs inside the trap, and each bend fires an electrical pulse; two pulses snap the trap shut.
After the second pulse a touch hormone pathway switches on, and more than three pulses start genes for digestive enzymes, with more pulses giving more enzyme.
Repeated pulses also raise production of a sodium channel in the glands, so the plant takes up sodium from the decaying prey in proportion to how much it struggled.
How sure are we?
3 evidence points. Worked out from the evidence we hold, not by hand.
Evidence
From NASA PeTaL (public domain). Credit NASA.
Where this comes from
The Venus Flytrap Dionaea muscipula Counts Prey-Induced Action Potentials to Induce Sodium Uptake.
Claude read this paper's abstract twice, independently, and wrote this page. No product uses it yet in our records, so it is an open idea to explore.