An upstate New York nurse convicted of taking a photo of an unconscious patient’s penis with her iPhone last year has surrendered her license.

Kristen Johnson pleaded guilty to misdemeanor disseminating of unlawful surveillance photos, and as part of a plea deal agreed to give up her license and spend three years on probation.

Johnson was the focus of a nine-month investigation after coworkers at Upstate University Hospital told authorities that she sent pictures of two patients via text message.

Investigators said Johnson used an iPhone 5 to photograph an incapacitated male patient’s genitals.

She was originally charged with two counts of second-degree unlawful surveillance and one count of second-degree disseminating unlawful surveillance.

Johnson surrendered her license to the state Education Department and did not contest a disciplinary charge of moral unfitness.