WESTFIELD - A Westfield man will serve time in jail after admitting he stole air conditioning units from a church and local businesses.

Sean O'Malley, 35, pleaded guilty Wednesday to four counts of larceny over $250. Judge Philip Contant sentenced O'Malley to 18 months in jail on each count, to be served concurrently.

According to the police report, air conditioning units were stolen or taken apart for copper parts in August 2013 at Buon Appetito Italian restaurant and the Hampton Ponds Association.

Police suspected O'Malley, but had no evidence to tie him to the thefts, the report said.

In December 2013, air conditioners were stolen from Word of Grace Church for a $40,000-50,000 loss. Through a property database, police found O'Malley sold air conditioner parts to a Chicopee scrap business at that time.

Police found O'Malley at his sister's residence, near the locations of the victims. He eventually admitted to officers that he stole the air conditioners, and said he didn't realize the Word of Grace building was a church.

O'Malley was originally charged with four counts of vandalizing property and fugitive from justice on a court warrant — from a warrant in Connecticut — but those charges were dropped.