A Franklin man will serve two years for spying on a woman using covert devices, including inside a bathroom.