CENTRAL ISLIP, N.Y. (CBSNewYork/AP) — A Long Island man has been sentenced for a bomb plot to extort money from Home Depot.

As WCBS 880’s Sophia Hall reported, it was a major scare at the Huntington Home Depot back in 2012 after a pipe bomb was planted in the store by then-employee Daniel Sheehan, authorities said.

READ MORE: New York Weather: CBS2's 12/3 Friday Afternoon Forecast

Police said Sheehan wrote a letter saying three bombs would go off at three different stores if $2 million was not paid.

No one was injured and after his arrest, Sheehan was offered a plea deal where he would have spent 12 years in prison.

He decided to go to trial, where a jury convicted him on multiple charges in 2013.

READ MORE: Columbia Student Killed, Tourist Wounded In Stabbings Near Morningside Park; Suspect In Custody

Sheehan’s defense argued the device at the Huntington store wasn’t actually a bomb because no trigger was attached.

The judge sentenced the 52-year-old to 30 years in prison on Friday.

“This is a frightening type of crime” that also was costly for the store, U.S. District Judge Denis Hurley said at Sheehan’s sentencing. Prosecutors said the company spent $1.5 million for additional security guards and other safety measures.

Prosecutors said Sheehan was a disgruntled employee who was upset when his hours were cut.

MORE NEWS: Suffolk County Police Officer Timothy Thrane Set To Be Released From Hospital

(TM and © Copyright 2015 CBS Radio Inc. and its relevant subsidiaries. CBS RADIO and EYE Logo TM and Copyright 2015 CBS Broadcasting Inc. Used under license. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. The Associated Press contributed to this report.)