Here's the link to the Somerset village ordinance that he was charged under.
https://library.municode.com/HTML/1...TER_2OFAGPUSAPE_S11-2-6LOPRSOLOUNPEWHALBEARDI
(c)
Loitering or Prowling Prohibited.
(1)
No person shall loiter or prowl in a place, at a time or in a manner not usual for law abiding individuals under circumstances that warrant alarm for the safety of persons or property in the vicinity. Among the circumstances which may be considered in determining whether such alarm is warranted is the fact that the person takes flight upon appearance of a law enforcement officer, refuses to identify himself/herself or manifestly endeavors to conceal himself/herself or any object. Unless flight by the person or other circumstances makes it impracticable, a law enforcement officer shall, prior to any arrest for an offense under this Section, afford the person an opportunity to dispel any alarm which would otherwise be warranted, by requesting him/her to identify himself/herself and explain his/her presence and conduct. No person shall be convicted of an offense under this Subsection if the law enforcement officer did not comply with the preceding sentence, or if it appears at trial that the explanation given by the person was true and, if believed by the law enforcement officer at the time, would have dispelled the alarm.