there is a service bulletin on this problem
it can run you around in circles chasing ghosts and replacing parts unnecessarily
first thing to try is remove and inspect spark plugs
if the truck has alot of hours on it try changing spark plugs
if the gap is wider than.038 (.096mm) then this could trigger the code.
code E27 is triggered because the time the ecm expects a signal from either one of those sensors is longer than expected. yes there could be a wiring issue but they do suggest checking and changing the spark plugs first on the long list of problems to check.
This is ONLY to be used to report flooding, spam, advertising and problematic (harassing, abusive or crude) posts.