A Pike County man was sentenced to up to 40 years in prison for killing his girlfriend in Monroe County in 2019.