Spatial-temporal dynamics of collective chemosensing