A man was sentenced to six to 12 years in prison for his role in a home invasion in Evansville three years ago during which he wielded a sawed-off double-barreled shotgun.

Tanner Davis, 21, heard the sentence for two counts of conspiracy to commit aggravated robbery -- the sentences will be served concurrently -- handed down by Natrona County District Court Judge Catherine Wilking during a hearing Monday.

Two counts of robbery and burglary were dismissed as part of Tanner's plea agreement on March 22.

Davis told the court that he wanted to change his behavior and get help for his addiction issues.

Partly because of those desires and because of his young age, Wilking agreed with Public Defender Rob Oldham to offer Davis a recommendation to attend the corrections department's boot camp program that may affect his prison sentence.

However, she told him that if he fails to successfully complete boot camp, he will be automatically sent to prison.

Davis was the third co-defendant in the case to be sentenced.

In May, Wilking sentenced Konnor Rollison to a prison term of six to 12 years in prison for aggravated burglary and aiding and abetting larceny.

In November, U.S. District Court Judge Nancy Freudenthal sentenced Taylor Whiting for being a felon in possession of a firearm. He received three years, one month of imprisonment, to be served consecutive to his undischarged terms his sentence in state district court.  Federal prosecutors took Whiting's case because of the firearms crime. He also participated in an armed robbery related to a marijuana deal gone bad in December 2015.

A fourth co-defendant, Gabriel Ingles, pleaded guilty to one count of burglary in March. He has yet to be sentenced.

The case started in May 2016, 10 months after the home invasion when one of the victims reported it to the Casper Police. He said he didn't report it when it happened about July 4, 2015, because the robbers threatened to kill him if he talked to authorities.

The police affidavit about Rollison's role said he, Davis, Whiting and another man planned to rob a man of his marijuana.

The victim said he and two juveniles were at his trailer in Evansville. The juveniles went to sleep on the living room couches, he went to sleep in the back bedroom.

He awoke to shouting, which he didn't think was related to anything threatening. He yelled for his friends to quiet down.

He then heard noises which made his dogs jump up. He held the dogs back, then one of the juveniles burst into the bedroom, saying, "They have guns," according to the affidavit.

Whiting and Davis both wore masks.

Davis held a sawed-off double-barreled shotgun with orange tape wrapped around it to make it look like a fake gun. Whiting held a hatchet.

The alleged victim says Whiting held him at gunpoint while Davis went through the adult's  room and closet, taking whatever he could carry, and ransacking the place. However, there was no marijuana in the residence.

One of the juveniles recognized Davis, called him by his nickname, and Whiting allegedly kicked the juvenile in the face.

Davis later admitted to the robbery.