Keep in mind that many times the code gets triggered for a different component, which can impact the performance of the sensor. It could be an electrical issue with the sensor not getting proper power, which is when the relay is at fault.
I have attached a step-by-step trouble shooting guide for the code P0135 (look below).
Please let me know if you have any questions.
Thank you.
Repair Safety Notice: This information is for general instructional purposes only. Vehicle repair can be dangerous. Verify all information, follow manufacturer service procedures, use proper tools and safety equipment, and consult a qualified repair shop when needed.