The story
It may allude to a straw (thin plant stalk) held up to see in what direction the wind blows: in this case, the metaphorical wind of group opinion.
Etymology from Wiktionary, CC BY-SA 4.0.
Today it means: A survey of opinion or a vote that is nonbinding, unofficial, casual, or ad hoc. Full definition →
It may allude to a straw (thin plant stalk) held up to see in what direction the wind blows: in this case, the metaphorical wind of group opinion.
Etymology from Wiktionary, CC BY-SA 4.0.