99 Intrepid 2.7 Engine Knocking

I have a 99 Intrepid with another engine put in. The Valves, Cams, pistons all check out good however engine has a knock at all times. What can it be
what should I check? Can a bad knock sensor cause this? Knock sounds from the top of engine.
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
Add image file

Motorsforum.com is a website by car enthusiasts for car enthusiasts. It is not affiliated with any of the car or spare part manufacturers or car dealers discussed here. All logos and trade names are the property of their respective owners.