BANGOR, Maine — Three illegal immigrants who had worked at a Clinton dairy farm were sentenced Wednesday in U.S. District Court to 119 days in jail, or time served, for using false identification documents.

Ildefonso Zamora-Davila, 24, Rigoberto Figueroa-Aguilar, 28, and Ruben Figueroa-Gutierrez, 27, all of Mexico are expected to be turned over to immigration officials for deportation by the end of the month.

The men all had fake resident alien and Social Security cards. They were living and working at the Flood farm, according to court documents, when they were arrested in July. The three pleaded guilty to the charges in August.

Figueroa-Gutierrez had worked at the farm for only a month when he was arrested after the Kennebec County Sheriff’s Office alerted U.S. Immigration and Customs Enforcement that illegal immigrants might be working at the farm. The other two men had been working at the farm since May 2007.

A fourth Mexican man who was arrested with the three others was charged with illegal possession of a rifle and ammunition in addition to having false documents.

Rogelio Figueroa-Figueroa, 22, also in the country illegally, pleaded guilty to the charges in September and is awaiting sentencing. He is being held without bail at the Piscataquis County Jail. A sentencing date has not been set.

He faces up to 10 years in federal prison and a fine of up to $250,000 on the gun charge.

All four men faced up to five years in federal prison and fines of up to $250,000 on the charge of having false documents.

The men are believed to be related.

Information about whether the farm’s owners have been charged in connection with the case was not available Thursday.