In the present work we study how sensory inputs conveyed by nerve fibers in the form of spatiotemporal patterns generate different responses in the central nervous system (CNS) depending on the physical characteristics of the stimulus applied and then we reproduce similar responses by means of electrical stimulation of the nervous fibers.