Temperature is one of the most relevant parameters for the regulation of intracellular processes. Measuring localized subcellular temperature gradients is fundamental for a deeper understanding of cell function, such as the genesis of action potentials, and cell metabolism. Notwithstanding several proposed techniques, at the moment detection of temperature fluctuations at the subcellular level still represents an ongoing challenge. Here, for the first time, temperature variations (1 °C) associated with potentiation and inhibition of neuronal firing is detected, by exploiting a nanoscale thermometer based on optically detected magnetic resonance in nanodiamonds. The results demonstrate that nitrogen-vacancy centers in nanodiamonds provide a tool for assessing various levels of neuronal spiking activity, since they are suitable for monitoring different temperature variations, respectively, associated with the spontaneous firing of hippocampal neurons, the disinhibition of GABAergic transmission and the silencing of the network. Conjugated with the high sensitivity of this technique (in perspective sensitive to < 0.1 °C variations), nanodiamonds pave the way to a systematic study of the generation of localized temperature gradients under physiological and pathological conditions. Furthermore, they prompt further studies explaining in detail the physiological mechanism originating this effect.