Herschel discovered infrared radiation by passing sunlight through a prism and holding a thermometer just beyond the red end of the visible spectrum . Herschel discovered infrared radiation in sunlight by passing it through a prism and holding a thermometer just beyond the red end of the visible spectrum .