A former Barbour County Sheriff will spend three years in the custody of the Alabama Department of Corrections for using his office for personal gain.