A man pleaded guilty and was sentenced on charges Monday related to the fatal shooting of another man in 2020 in Beltzhoover.

Daniel Miles, 33, will spend 18 to 40 years in prison after pleading guilty to third-degree murder and a firearms violation in the death of Robert Fulton III.

Fulton was found lying in the 200 block of Taft Avenue just after 11:30 a.m. on Feb. 26, 2020, with a gunshot wound to the torso. He died at a hospital a short time later.

Police used a variety of tools — including an eyewitness account, cellphone records, surveillance video and search warrants — to connect Miles to the shooting.

The Allegheny County District Attorney’s office said it accepted the sentence in exchange for the plea before Allegheny County Common Pleas Judge Randal Todd.