Code P0118 Coolant Temperature Sensor

I went to my local Autozone today to have a code read and get the freeze frame data. I got a code P0118, Engine Coolant Temperature Circuit High Input. I called the dealer but they are out of stock on the sensor. Would it be a problem to use an after market sensor? I’m just concerned about the quality and accuracy of the sensor. From what I have found out Standard Motor Products and Beck/Arnley makes them.

It is usually okay to use an aftermarket sensor, such as those made by Beck/Arnley or Standard Motor Products. These well-known brands frequently provide parts that satisfy OEM requirements. For optimal effects, just make sure it is compatible with the make and model of your car.