In this paper we present a new measurement setup, where a transitionedge sensor detector array is used to detect X-rays in particle induced X-ray emission measurements with a 2 MeV proton beam. Transition-edge sensors offer orders of magnitude improvement in energy resolution compared to conventional silicon or germanium detectors, making it possible to recognize spectral lines in materials analysis that have previously been impossible to resolve, and to get chemical information from the elements. Our sensors are cooled to the operation temperature (65 mK) with a cryogen-free adiabatic demagnetization refrigerator, which houses a specially designed X-ray snout that has a vacuum tight window to couple in the radiation. For the best pixel, the measured instrumental energy resolution was 3.06 eV full width at half maximum at 5.9 keV.We discuss the current status of the project, benefits of transition-edge sensors when used in particle induced X-ray emission spectroscopy, and the results from the first measurements.