I had that happen in my ix. Turned out to be where the sensor plugs into the harness, it had come unplugged. I plugged it back in and all is fine again. Look for a wire harness coming out of the oil pan.
89 325ix - stock
97 Miata - turboed, intercooled, and megasquirted