Text this: Resource variability shapes the ecology of social information and collective sensing.