A judge in northwestern Ohio has found a pastor guilty on criminal charges for failing to comply with the city fire code after he opened his church to let homeless people and others stay overnight.