The present protocol outlines in vivo calcium imaging for measuring the responses of ensembles of lumbar-6 DRG neurons to somatic and visceral stimuli. Thorough comparisons can be made among neurons responding to different stimuli. This protocol is valuable for investigating mechanisms of visceral pain and somatic stimulation, such as acupuncture.