OSSIPEE, N.H. — A second New Hampshire man was sentenced Tuesday in connection with the disappearance and death last year of a Maine woman whose 14-month-old daughter was found abandoned in her car.

Trevor Ferguson of Tamworth pleaded guilty in Carroll County Superior Court to conspiring to rob Krista Dittmeyer, 20. He was sentenced to at least seven years in prison.

He was accused of driving the getaway car after the crime in exchange for money and drugs that two other men hoped to steal from Dittmeyer.

WMUR-TV of Manchester reported that Ferguson apologized in court, and that his grandmother spoke on his behalf.

Dittmeyer, who grew up in Bridgton and was living in Portland at the time of her death, was found in a snowmaking pond at the Cranmore Mountain Resort in Conway last year. The discovery came four days after her car was found idling in the ski area’s parking lot with her daughter, unharmed, inside.

Anthony Papile of Ossipee pleaded guilty last month to second-degree murder and was sentenced to 50 years in prison. The case is still pending for another man who is charged with conspiracy to commit robbery, Michael Petelis.

Prosecutors said Dittmeyer was lured to Petelis’ apartment in Ossipee. Papile clubbed her in the head three times as she climbed the stairs. Prosecutors say Papile and Petelis plotted to steal drugs and money from her.

Prosecutors said Papile and Petelis bound Dittmeyer’s legs and torso with duct tape and put her in the trunk of her car, which Papile drove to the ski area. Papile submerged her underwater.