The Rikers Island Correction Officer who smuggled a tattoo gun into prison for her female lover took a plea deal Tuesday and will get five years of probation, prosecutors announced.

Corrections Capt. Shantay Dash helped Robin Hamilton cover up a tattoo that would connect her to a 2013 robbery with a tattoo gun she ordered on Amazon.com.

When prosecutors went to photograph Hamilton’s tattoo — which read, “ERIKA” and matched a tattoo on the arm of a person caught on surveillance video — it was no longer there.

Hamilton ended up going to prison on a 51-years-to-life sentence, despite the help from her lover who smuggled the gun into prison and then later helped get rid of it.

Dash — who had worked in the Department of Correction since 2008 — copped to the top charge of evidence-tampering. She had originally also been charged with promoting contraband and official misconduct.

Last year Dash was paid $134,278 and just a week after The Post exclusively revealed her arrest on March 1 she resigned, a law enforcement source said.

Peter Thorne, a spokes​man for the DOC, said, “​T​he vast majority of Department of Correction staff perform their duties with the highest level of integrity and the Department has zero tolerance for those who don’t.”

She is due back in court on Aug. 8 for sentencing.