Ergot, the fungus discovered on the grain in this story, is a real fungus and has a long history of causing hallucinations and death until modern farming helped mostly eliminate it. It has also been the basis for several modern medications and chemicals, including, famously, Lysergic Acid Diethylomide 25 or LSD.