While the neuronal activity of the cerebral cortex is strongly modulated by sensory inputs, the cortex also exhibits rich spontaneous dynamics. Experimental evidence suggests that sensory stimulation may shape the spontaneous activity of the cortex, which in turn can influence its responses to further external stimulation. However, we still do not understand how sensory stimuli affect the underlying neural circuitry. Here we study whether spike-timing-dependent plasticity (STDP) can mediate sensory-induced modifications in the spontaneous dynamics of a new large-scale model of layers II, III and IV of the rodent barrel cortex. A central feature of our model is its level of physiological detail, including the types of neurons present, the probabilities and delays of connections, and the STDP profiles at each excitatory synapse. We stimulated the neuronal network with a protocol of repeated sensory inputs, resembling those generated by the protraction-retraction motion of whiskers when rodents explore their environment, and studied the changes in network dynamics. By applying dimensionality reduction techniques to the synaptic weight space, we show that the trajectories converge to an initial spontaneous attractor state, which is modified by each repetition of the stimulus. This reverberation of the sensory experience induces long-term modifications in the synaptic weight space. The post-stimulus spontaneous state encodes a unique memory of the stimulus presented, since a different dynamical response is observed when the network is presented with shuffled stim- uli. These results suggest that repeated exposure to the same sensory experience could induce long-term circuitry modifications via 'Hebbian' STDP plasticity.