A Whiting, Iowa, man who was found guilty a second time of trying to shoot his uncle was sentenced Friday to 40 years in prison.