To understand how sensory-driven neural activity gives rise to perception, it is essential to characterize how various relay stations in the brain encode stimulus presence. Neurons in the ventral posterior lateral (VPL) nucleus of the somatosensory thalamus and in primary somatosensory cortex (S1) respond to vibrotactile stimulation with relatively slow modulations (∼100 ms) of their firing rate. In addition, faster modulations (∼10 ms) time-locked to the stimulus waveform are observed in both areas, but their contribution to stimulus detection is unknown. Furthermore, it is unclear whether VPL and S1 neurons encode stimulus presence with similar accuracy and via the same response features. To address these questions, we recorded single neurons while trained monkeys judged the presence or absence of a vibrotactile stimulus of variable amplitude, and their activity was analyzed with a unique decoding method that is sensitive to the time scale of the firing rate fluctuations. We found that the maximum detection accuracy of single neurons is similar in VPL and S1. However, VPL relies more heavily on fast rate modulations than S1, and as a consequence, the neural code in S1 is more tolerant: its performance degrades less when the readout method or the time scale of integration is suboptimal. Therefore, S1 neurons implement a more robust code, one less sensitive to the temporal integration window used to infer stimulus presence downstream. The differences between VPL and S1 responses signaling the appearance of a stimulus suggest a transformation of the neural code from thalamus to cortex. (1-4), and as the signal is relayed from one layer to the next, its representation in spatiotemporal patterns of activity may change (1). Previous studies have shown that, when a tactile vibratory stimulus is presented, neurons in the ventral posterior lateral (VPL) nucleus in the somatosensory thalamus and primary somatosensory cortex (S1, areas 3b and 1) respond by modulating their firing rates computed over a time scale of hundreds of milliseconds (5-9). Because these slow firing rate modulations occurring within relatively long time windows depend on amplitude and vibration frequency, they encode these key stimulus features. In addition, to varying degrees, evoked spikes in both areas also tend to be synchronized to the waveform of the applied mechanical stimulus, which, for frequencies <40 Hz, varies on a time scale of tens of milliseconds. This entrainment, which corresponds to fast firing rate modulations, also depends on stimulus amplitude (9), and so it too carries information about stimulus presence. However, it is unknown whether both the slow (∼100 ms) and fast (∼10 ms) modulations in firing rate contribute to perceptual performance during stimulus detection. Moreover, it is not clear whether the two time scales are equally important in VPL and S1, nor whether the capacity to signal stimulus presence changes from one area to the next.To investigate these issues, we recorded activity from single neurons in the VPL nucle...