A previously convicted felon and sex offender was sentenced to prison Monday for bringing a shotgun onto a MetroBus.