Truffles play a part in environmental research, by attracting animals that scientists need to observe. Steve Mirsky reports