A former council employee jailed for child-sex offences will be freed next month, but will be barred from using the internet.

Andrew John Gray was sentenced to 2 years in prison in September 2012, after pleading guilty to one charge of unlawful sexual connection with a boy, one of indecent assault, and 43 charges of possessing sexual images of children.

Formerly employed by Masterton District Council as a building inspector, Gray was stood down in August 2011 after he was charged with sex offences against a 10-year-old boy.

But he remained on full pay until he pleaded guilty, and drew the ire of his victim's father after using the time to build a house in Masterton.

He was aware he would face public antipathy when freed and would have to "mend a lot of bridges".

Gray will be released on July 2 with 10 special release conditions, including not to have possession of or use any computer, camera, telephone or other electronic device capable of accessing the internet.

He will also be under curfew and unable to associate with or contact anyone under 16.