Kepler mission is a powerful tool in the study the different types of astrophysical objects or events in the distant Universe. However, the spacecraft gives also the opportunity to study Solar System objects passing in the telescope field of view. The aim of this paper is to determine for the first time the rotation periods of a number of asteroids observed by the Kepler satellite during the K2 Campaign 9. Using publicly available data from Kepler mission we have used the Modified Causal Pixel Model (MCPM) code to perform the aperture-like and PRF-like photometry of 1026 asteroids. The results allowed us to determine the rotation periods for 188 asteroids. For asteroids with rotation periods previously measured, we compared the results and found very good agreement. There are additional 20 asteroids for which we obtained lower limits on rotation periods and in all cases these limits are at least 100 h.