Camshaft Sensor Problem

I have a 1997 Mercury Sable OHV V6. The error code from the check engine light, P0340, said I had a malfunctioning camshaft position sensor. I
replaced the sensor. It was indeed bad. Now I am getting a error code P0341, voltage signal out of range for current engine operation conditions. I tried to find information on this error with little success. Does anyone know how to fix this problem? TIA, Rafael
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
Add image file
Upload 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.