PORTSMOUTH, N.H.  — A Wells woman has pleaded guilty to a child endangerment charge after police say she left her 6-month-old baby in a hot car during the summer while she went shopping in Portsmouth, N.H.

The Portsmouth Herald  reports that 32-year-old Renee Ramsey was fined $1,200, with $800 suspended pending one year of good behavior. She also was ordered to attend parenting classes.

Police said an officer broke one of the car windows to remove the baby on Aug. 6, who was later released to a relative after being examined at the hospital. The temperature outside was 81 degrees, and officers measured the temperature inside the car at 117 degrees.