GREENFIELD — A man who was sleeping in a dumpster at United Ag & Turf escaped serious injury Thursday morning after an alert driver with the recycling removal company heard yelling during pickup and called 911.

The man, in his late 40s, was in the 8-yard dumpster at the location, which is a John Deere equipment dealership, on Shelburne Road when a driver employed by a private recycling removal company arrived shortly after 7 a.m. to collect cardboard, according to Deputy Fire Chief Peter McIver.

McIver said the driver emptied the dumpster into one of the truck’s compartments and heard shouting, while a dispatcher from the truck company monitoring the truck’s activities via camera attempted to call him regarding the man’s presence.

McIver estimates the man was dropped 10 to 12 feet along with some cardboard into the truck’s compartment. He said he and other firefighters responded to United Ag & Turf and made verbal contact with the man before dropping in a ladder. Emergency personnel entered the compartment and confirmed it was safe to remove him before assisting him up the ladder at around 7:30 a.m.

The man complained of head pain and was transported to Baystate Franklin Medical Center by South County EMS.

Police Chief Todd Dodge said police also responded. He said everyone is grateful the man was not seriously injured or killed.

“That was quick thinking on the part of the operator,” he said. “We appreciate that very much.”

Ian Molloy, United Ag & Turf’s general manager, said the business was not yet open when the incident occurred. He said he arrived for work and learned what happened, and briefly talked with the driver.

“We’re all just glad that things didn’t go any worse,” he said.

McIver mentioned the 24-hour shift was a particularly strange one for the Fire Department. His crew started on Wednesday by using extrication equipment known as the Jaws of Life to free a dog with its head stuck in railings on a back porch in the center of the city.

“They finished off their unpredictable day with [the dumpster incident],” he said.

Domenic Poli covers the court system in Franklin County and the towns of Orange, Wendell and New Salem. He has worked at the Recorder since 2016. Email: dpoli@recorder.com.